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
346 B
Dart
16 lines
346 B
Dart
4 years ago
|
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();
|
||
|
}
|
||
|
}
|