main function
void
main()
Implementation
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await SharedPreferences.getInstance();
final container = ProviderContainer();
if (Platform.isWindows) {
await windowManager.ensureInitialized();
WindowOptions windowOptions = const WindowOptions(
fullScreen: true,
);
windowManager.waitUntilReadyToShow(windowOptions, () async {
await windowManager.show();
await windowManager.focus();
});
}
// Video libraries removed
await initializeCretaDeviceWatch();
runApp(
UncontrolledProviderScope(
container: container,
child: const MyApp(),
),
);
}