Skip to content

Instantly share code, notes, and snippets.

View johanguse's full-sized avatar
🏠
Working from home

Johan Guse johanguse

🏠
Working from home
View GitHub Profile
@johanguse
johanguse / main.dart
Created March 20, 2020 22:03 — forked from vincevargadev/main.dart
switching theme without any library.
void main() {
runApp(_SwitchingThemeApp());
}
/// Properties that help me keep track of the example being run.
bool _useMaterial = false;
class _SwitchingThemeApp extends StatefulWidget {
@override
_SwitchingThemeAppState createState() => _SwitchingThemeAppState();