You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
403 B
Dart
16 lines
403 B
Dart
import 'package:diplomaticquarterapp/config/config.dart';
|
|
import 'package:diplomaticquarterapp/theme/theme_value.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ThemeNotifier with ChangeNotifier {
|
|
ThemeData _themeData = defaultTheme;
|
|
ThemeNotifier(this._themeData);
|
|
getTheme() => _themeData;
|
|
|
|
setTheme(ThemeData themeData) async {
|
|
_themeData = themeData;
|
|
|
|
notifyListeners();
|
|
}
|
|
}
|