check and fix in ui
This commit is contained in:
@@ -3,7 +3,7 @@ import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import 'colors.dart';
|
||||
|
||||
class ThemeProvider extends ChangeNotifier {
|
||||
class ThemeProvider with ChangeNotifier {
|
||||
static const String _themeKey = 'theme_mode';
|
||||
static BuildContext? _context;
|
||||
|
||||
@@ -40,6 +40,7 @@ class ThemeProvider extends ChangeNotifier {
|
||||
|
||||
// Notify listeners after loading
|
||||
notifyListeners();
|
||||
_rebuildAllChildren();
|
||||
}
|
||||
|
||||
Future<void> toggleTheme() async {
|
||||
|
||||
Reference in New Issue
Block a user