diff --git a/lib/firesApp.dart b/lib/firesApp.dart index cdb5a4a..5d0d4f2 100644 --- a/lib/firesApp.dart +++ b/lib/firesApp.dart @@ -6,6 +6,7 @@ import 'package:flutter_redux/flutter_redux.dart'; import 'package:redux/redux.dart'; import 'package:redux/src/store.dart'; +import 'globals.dart'; import 'monitoredAreas.dart'; import 'activeFires.dart'; import 'fireAlert.dart'; @@ -19,6 +20,7 @@ import 'redux/actions.dart'; import 'sandbox.dart'; import 'supportPage.dart'; import 'theme.dart'; +import 'themeDev.dart'; class FiresApp extends StatefulWidget { FiresApp(this.store); @@ -80,7 +82,7 @@ class _FiresAppState extends State { } return S.of(context).appName; }, - theme: firesTheme, + theme: isDevelopment? devFiresTheme: firesTheme, routes: routes)); } } diff --git a/lib/themeDev.dart b/lib/themeDev.dart new file mode 100644 index 0000000..025dfba --- /dev/null +++ b/lib/themeDev.dart @@ -0,0 +1,22 @@ +import 'package:flutter/material.dart'; + +import 'colors.dart'; + +final ThemeData devFiresTheme = _buildFiresTheme(); + +ThemeData _buildFiresTheme() { + final ThemeData base = ThemeData.light(); // light or dark + return base.copyWith( + accentColor: fires900, + primaryColor: Colors.pink, + buttonColor: fires900, + scaffoldBackgroundColor: firesSurfaceWhite, + cardColor: firesBackgroundWhite, + textSelectionColor: fires300, + errorColor: firesErrorRed, + + //TODO: Add the text themes (103) + //TODO: Add the icon themes (103) + //TODO: Decorate the inputs (103) + ); +}