fix: don't init window manager on mobile

This commit is contained in:
Prateek Sunal 2024-03-07 15:34:49 +05:30
parent 4e452d6b43
commit 06104f2d3b

View file

@ -36,9 +36,8 @@ final _logger = Logger("main");
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await windowManager.ensureInitialized();
if (PlatformUtil.isDesktop()) {
await windowManager.ensureInitialized();
WindowOptions windowOptions = const WindowOptions(
size: Size(450, 800),
);