feat(ui): Implement dark mode
This commit is contained in:
parent
7af2277bb2
commit
7e131ff750
@ -56,17 +56,18 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
final GlobalKey<NavigatorState> 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,
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user