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;
|
final GlobalKey<NavigatorState> navKey;
|
||||||
|
|
||||||
// This widget is the root of your application.
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'AniTrack',
|
title: 'AniTrack',
|
||||||
|
themeMode: ThemeMode.system,
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
|
brightness: Brightness.light,
|
||||||
primarySwatch: Colors.blue,
|
primarySwatch: Colors.blue,
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
),
|
),
|
||||||
darkTheme: ThemeData(
|
darkTheme: ThemeData(
|
||||||
|
brightness: Brightness.dark,
|
||||||
primarySwatch: Colors.blue,
|
primarySwatch: Colors.blue,
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user