Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class ThemeNotifier with ChangeNotifier {
- ThemeData _themeData;
- ThemeNotifier(this._themeData);
- getTheme() => _themeData;
- setTheme(ThemeData themeData) async {
- _themeData = themeData;
- notifyListeners();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement