If I run the package from the overlay with @pragma(“vm:entry-point”) I get an error. Is there any way to fix this?
@pragma("vm:entry-point")
void overlayMain() {
WidgetsFlutterBinding.ensureInitialized();
runApp(
const MaterialApp(
debugShowCheckedModeBanner: false,
home: OverlayView(),
),
);
}
If I run the package from the overlay with @pragma(“vm:entry-point”) I get an error. Is there any way to fix this?
@pragma("vm:entry-point")
void overlayMain() {
WidgetsFlutterBinding.ensureInitialized();
runApp(
const MaterialApp(
debugShowCheckedModeBanner: false,
home: OverlayView(),
),
);
}