.github
android
assets
ios
lib
controllers
providers
channel.dart
chat_call.dart
navigation.dart
notification.dart
post.dart
relationship.dart
sn_attachment.dart
sn_network.dart
theme.dart
user_directory.dart
userinfo.dart
websocket.dart
screens
types
widgets
firebase_options.dart
main.dart
router.dart
theme.dart
linux
macos
snap
web
windows
.fvmrc
.gitignore
.metadata
.roadsignrc
README.md
analysis_options.yaml
build.yaml
devtools_options.yaml
firebase.json
pubspec.lock
pubspec.yaml
roadsign.toml
21 lines
405 B
Dart
21 lines
405 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:surface/theme.dart';
|
|
|
|
class ThemeProvider extends ChangeNotifier {
|
|
ThemeSet? theme;
|
|
|
|
ThemeProvider() {
|
|
createAppThemeSet().then((value) {
|
|
theme = value;
|
|
notifyListeners();
|
|
});
|
|
}
|
|
|
|
void reloadTheme({bool? useMaterial3}) {
|
|
createAppThemeSet().then((value) {
|
|
theme = value;
|
|
notifyListeners();
|
|
});
|
|
}
|
|
}
|