From 7e131ff750f3f38a7c4ae773b42233a414ffdce9 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 4 Feb 2023 12:50:45 +0100 Subject: [PATCH] feat(ui): Implement dark mode --- lib/main.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 33a9051..30c6390 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -56,17 +56,18 @@ class MyApp extends StatelessWidget { final GlobalKey navKey; - // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'AniTrack', - + themeMode: ThemeMode.system, theme: ThemeData( + brightness: Brightness.light, primarySwatch: Colors.blue, useMaterial3: true, ), darkTheme: ThemeData( + brightness: Brightness.dark, primarySwatch: Colors.blue, useMaterial3: true, ),