Skip to content

Instantly share code, notes, and snippets.

View afzaal-ahmad-zeeshan's full-sized avatar
:octocat:
i know i will break it

Afzaal Ahmad Zeeshan afzaal-ahmad-zeeshan

:octocat:
i know i will break it
View GitHub Profile
@boanergepro
boanergepro / app.dart
Created July 1, 2019 18:55
Flutter dynamic theming - Change theme at runtime using Provider
import 'package:flutter/material.dart';
class AppProvider with ChangeNotifier {
ThemeData _currentTheme;
AppProvider() {
_currentTheme = ThemeDat.light()
}
ThemeData get currentTheme => _currentTheme;