Improved json auto save & budget mobile UI
This commit is contained in:
@@ -46,6 +46,8 @@ class _AppViewState extends State<AppView> {
|
||||
|
||||
_transactionsRepository.loadTransactions();
|
||||
_metadataRepository.loadMetadata();
|
||||
|
||||
_metadataRepository.getSettingsStream().listen((event) => setState(() {}));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -66,11 +68,11 @@ class _AppViewState extends State<AppView> {
|
||||
darkColorScheme = darkDynamic.harmonized();
|
||||
} else {
|
||||
lightColorScheme = ColorScheme.fromSeed(
|
||||
seedColor: const Color.fromARGB(1, 5, 236, 55),
|
||||
seedColor: const Color.fromARGB(255, 103, 6, 231),
|
||||
);
|
||||
|
||||
darkColorScheme = ColorScheme.fromSeed(
|
||||
seedColor: const Color.fromARGB(1, 5, 236, 55),
|
||||
seedColor: const Color.fromARGB(255, 103, 6, 231),
|
||||
brightness: Brightness.dark,
|
||||
);
|
||||
}
|
||||
@@ -79,6 +81,7 @@ class _AppViewState extends State<AppView> {
|
||||
title: 'Tunas',
|
||||
theme: ThemeData(colorScheme: lightColorScheme),
|
||||
darkTheme: ThemeData(colorScheme: darkColorScheme),
|
||||
themeMode: _metadataRepository.getSettings().themeMode,
|
||||
initialRoute: '/home',
|
||||
routes: {
|
||||
'/home':(context) => const HomePage(),
|
||||
|
||||
Reference in New Issue
Block a user