Skip to content

Instantly share code, notes, and snippets.

View hillelcoren's full-sized avatar

Hillel Coren hillelcoren

View GitHub Profile
@hillelcoren
hillelcoren / main.dart
Created January 11, 2019 11:15
Enable/disable dark mode with Redux
import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:redux/redux.dart';
void main() {
final store =
Store<AppState>(reducer, initialState: AppState(enableDarkMode: false));
runApp(MyApp(store: store));
}