Started Using ThemeData, Changed Primary Color to indigo and corrected logo to indigo.
Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 26 KiB |
@ -25,7 +25,9 @@ class TimeProgressTrackerApp extends StatelessWidget {
|
||||
child: MaterialApp(
|
||||
title: name,
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.blue,
|
||||
primarySwatch: Colors.indigo,
|
||||
accentColor: Colors.indigoAccent,
|
||||
brightness: Brightness.light,
|
||||
visualDensity: VisualDensity.adaptivePlatformDensity,
|
||||
),
|
||||
initialRoute: ProgressDashboardScreen.routeName,
|
||||
|
@ -61,6 +61,8 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ThemeData appTheme = Theme.of(context);
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text("Create Time Progress"),
|
||||
@ -95,7 +97,7 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
|
||||
Expanded(
|
||||
flex: 5,
|
||||
child: FlatButton(
|
||||
color: Colors.blue,
|
||||
color: appTheme.accentColor,
|
||||
child: Text(
|
||||
"Start Date: ${pickedStartTime.toLocal().toString().split(" ")[0]}"),
|
||||
onPressed: () async {
|
||||
@ -115,7 +117,7 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
|
||||
Expanded(
|
||||
flex: 5,
|
||||
child: FlatButton(
|
||||
color: Colors.blue,
|
||||
color: appTheme.accentColor,
|
||||
child: Text(
|
||||
"End Date: ${pickedEndTime.toLocal().toString().split(" ")[0]}"),
|
||||
onPressed: () async {
|
||||
|
@ -21,6 +21,8 @@ class AppDrawer extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ThemeData appTheme = Theme.of(context);
|
||||
|
||||
return Drawer(
|
||||
child: StoreConnector(
|
||||
converter: _ViewModel.fromStore,
|
||||
@ -34,11 +36,11 @@ class AppDrawer extends StatelessWidget {
|
||||
List<Widget> drawerTileList = List<Widget>();
|
||||
drawerTileList.add(DrawerHeader(
|
||||
child: Text(TimeProgressTrackerApp.name),
|
||||
decoration: BoxDecoration(color: Colors.blue),
|
||||
decoration: BoxDecoration(color: appTheme.primaryColor),
|
||||
margin: EdgeInsets.zero,
|
||||
));
|
||||
drawerTileList.add(Container(
|
||||
color: Colors.lightBlue,
|
||||
color: appTheme.accentColor,
|
||||
margin: EdgeInsets.only(bottom: 8),
|
||||
child: ListTile(
|
||||
title: Text(ProgressDashboardScreen.title),
|
||||
@ -96,7 +98,7 @@ class AppDrawer extends StatelessWidget {
|
||||
context: context,
|
||||
applicationName: TimeProgressTrackerApp.name,
|
||||
applicationVersion: " Version $appVersion",
|
||||
applicationLegalese: '\u00a9Andreas Fahrecker 2020');
|
||||
applicationLegalese: '\u00a9Andreas Fahrecker 2020-2021');
|
||||
},
|
||||
),
|
||||
));
|
||||
|
@ -14,8 +14,10 @@ class ProgressDetailSelectDateButton extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ThemeData appTheme = Theme.of(context);
|
||||
|
||||
return FlatButton(
|
||||
color: Colors.blue,
|
||||
color: appTheme.accentColor,
|
||||
child: Text(
|
||||
"$leadingString ${selectedDate.toLocal().toString().split(" ")[0]}"),
|
||||
onPressed: () async {
|
||||
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 0.0.6+6
|
||||
version: 0.0.7+7
|
||||
|
||||
environment:
|
||||
sdk: ">=2.7.0 <3.0.0"
|
||||
|