Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class ThemeNotifier with ChangeNotifier {
  4. ThemeData _themeData;
  5.  
  6. ThemeNotifier(this._themeData);
  7.  
  8. getTheme() => _themeData;
  9.  
  10. setTheme(ThemeData themeData) async {
  11. _themeData = themeData;
  12. notifyListeners();
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement