New theme for development

This commit is contained in:
Vicente J. Ruiz Jurado 2018-08-13 07:49:11 +02:00
parent 4ff9d995e7
commit cf1452a9e9
2 changed files with 25 additions and 1 deletions

View file

@ -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<FiresApp> {
}
return S.of(context).appName;
},
theme: firesTheme,
theme: isDevelopment? devFiresTheme: firesTheme,
routes: routes));
}
}

22
lib/themeDev.dart Normal file
View file

@ -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)
);
}