New theme for development
This commit is contained in:
parent
4ff9d995e7
commit
cf1452a9e9
2 changed files with 25 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import 'package:flutter_redux/flutter_redux.dart';
|
||||||
import 'package:redux/redux.dart';
|
import 'package:redux/redux.dart';
|
||||||
import 'package:redux/src/store.dart';
|
import 'package:redux/src/store.dart';
|
||||||
|
|
||||||
|
import 'globals.dart';
|
||||||
import 'monitoredAreas.dart';
|
import 'monitoredAreas.dart';
|
||||||
import 'activeFires.dart';
|
import 'activeFires.dart';
|
||||||
import 'fireAlert.dart';
|
import 'fireAlert.dart';
|
||||||
|
|
@ -19,6 +20,7 @@ import 'redux/actions.dart';
|
||||||
import 'sandbox.dart';
|
import 'sandbox.dart';
|
||||||
import 'supportPage.dart';
|
import 'supportPage.dart';
|
||||||
import 'theme.dart';
|
import 'theme.dart';
|
||||||
|
import 'themeDev.dart';
|
||||||
|
|
||||||
class FiresApp extends StatefulWidget {
|
class FiresApp extends StatefulWidget {
|
||||||
FiresApp(this.store);
|
FiresApp(this.store);
|
||||||
|
|
@ -80,7 +82,7 @@ class _FiresAppState extends State<FiresApp> {
|
||||||
}
|
}
|
||||||
return S.of(context).appName;
|
return S.of(context).appName;
|
||||||
},
|
},
|
||||||
theme: firesTheme,
|
theme: isDevelopment? devFiresTheme: firesTheme,
|
||||||
routes: routes));
|
routes: routes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
22
lib/themeDev.dart
Normal file
22
lib/themeDev.dart
Normal 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)
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue