Skip to content

Commit

Permalink
Fix color theme setting
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotnash committed Aug 13, 2024
1 parent 6e3aa7b commit ad79f1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:forest_park_reports/provider/settings_provider.dart';
import 'package:forest_park_reports/util/offline_uploader.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:forest_park_reports/consts.dart';
Expand Down Expand Up @@ -90,6 +91,7 @@ class _AppState extends ConsumerState<App> with WidgetsBindingObserver {

return MaterialApp(
title: 'Trail Eyes',
themeMode: ref.watch(settingsProvider.select((s) => s.colorTheme)).value,
theme: lightTheme,
darkTheme: darkTheme,
home: HomeScreen(key: homeKey),
Expand Down

0 comments on commit ad79f1a

Please sign in to comment.