feat(ui): Implement dark mode

This commit is contained in:
PapaTutuWawa 2023-02-04 12:50:45 +01:00
parent 7af2277bb2
commit 7e131ff750

View File

@ -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,
), ),