Surface/lib/providers/theme.dart

21 lines
405 B
Dart
Raw Normal View History

2024-11-08 16:09:46 +00:00
import 'package:flutter/foundation.dart';
import 'package:surface/theme.dart';
class ThemeProvider extends ChangeNotifier {
ThemeSet? theme;
2024-11-08 16:09:46 +00:00
ThemeProvider() {
createAppThemeSet().then((value) {
theme = value;
notifyListeners();
});
}
void reloadTheme({bool? useMaterial3}) {
createAppThemeSet().then((value) {
theme = value;
notifyListeners();
});
2024-11-08 16:09:46 +00:00
}
}