Created
September 28, 2019 16:55
-
-
Save divyanshub024/1e39abb67f1c1f9514ebf5c9daadffea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| class ThemeNotifier with ChangeNotifier { | |
| ThemeData _themeData; | |
| ThemeNotifier(this._themeData); | |
| getTheme() => _themeData; | |
| setTheme(ThemeData themeData) async { | |
| _themeData = themeData; | |
| notifyListeners(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment