cake_wallet/lib/theme_changer.dart

16 lines
270 B
Dart
Raw Normal View History

2020-01-04 19:31:52 +00:00
import 'package:flutter/material.dart';
class ThemeChanger with ChangeNotifier {
2020-01-08 12:26:34 +00:00
ThemeChanger(this._themeData);
2020-01-04 19:31:52 +00:00
ThemeData _themeData;
2020-01-08 12:26:34 +00:00
ThemeData getTheme() => _themeData;
2020-01-04 19:31:52 +00:00
2020-01-08 12:26:34 +00:00
void setTheme(ThemeData theme){
2020-01-04 19:31:52 +00:00
_themeData = theme;
notifyListeners();
}
}