From e6c22cef8219316383bf3bebb8250c9d15bd4f66 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Fri, 1 Jan 2021 12:27:40 +0530 Subject: [PATCH] Fix themeMode --- example/lib/main.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index ca3bedd2..8d436614 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -59,10 +59,7 @@ class MyApp extends StatelessWidget { debugShowCheckedModeBanner: false, theme: ThemeData.light(), darkTheme: ThemeData.dark(), - themeMode: - WidgetsBinding.instance.window.platformBrightness == Brightness.light - ? ThemeMode.light - : ThemeMode.dark, + themeMode: ThemeMode.system, onGenerateRoute: AppRoutes.generateRoute, initialRoute: client.state.user == null ? Routes.CHOOSE_USER : Routes.HOME,