Started Using ThemeData, Changed Primary Color to indigo and corrected logo to indigo.

Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
Andreas Fahrecker 2021-02-10 15:04:51 +01:00
parent 44db690a4a
commit c5e240e813
11 changed files with 16 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -25,7 +25,9 @@ class TimeProgressTrackerApp extends StatelessWidget {
child: MaterialApp( child: MaterialApp(
title: name, title: name,
theme: ThemeData( theme: ThemeData(
primarySwatch: Colors.blue, primarySwatch: Colors.indigo,
accentColor: Colors.indigoAccent,
brightness: Brightness.light,
visualDensity: VisualDensity.adaptivePlatformDensity, visualDensity: VisualDensity.adaptivePlatformDensity,
), ),
initialRoute: ProgressDashboardScreen.routeName, initialRoute: ProgressDashboardScreen.routeName,

View File

@ -61,6 +61,8 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
ThemeData appTheme = Theme.of(context);
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: Text("Create Time Progress"), title: Text("Create Time Progress"),
@ -95,7 +97,7 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
Expanded( Expanded(
flex: 5, flex: 5,
child: FlatButton( child: FlatButton(
color: Colors.blue, color: appTheme.accentColor,
child: Text( child: Text(
"Start Date: ${pickedStartTime.toLocal().toString().split(" ")[0]}"), "Start Date: ${pickedStartTime.toLocal().toString().split(" ")[0]}"),
onPressed: () async { onPressed: () async {
@ -115,7 +117,7 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
Expanded( Expanded(
flex: 5, flex: 5,
child: FlatButton( child: FlatButton(
color: Colors.blue, color: appTheme.accentColor,
child: Text( child: Text(
"End Date: ${pickedEndTime.toLocal().toString().split(" ")[0]}"), "End Date: ${pickedEndTime.toLocal().toString().split(" ")[0]}"),
onPressed: () async { onPressed: () async {

View File

@ -21,6 +21,8 @@ class AppDrawer extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
ThemeData appTheme = Theme.of(context);
return Drawer( return Drawer(
child: StoreConnector( child: StoreConnector(
converter: _ViewModel.fromStore, converter: _ViewModel.fromStore,
@ -34,11 +36,11 @@ class AppDrawer extends StatelessWidget {
List<Widget> drawerTileList = List<Widget>(); List<Widget> drawerTileList = List<Widget>();
drawerTileList.add(DrawerHeader( drawerTileList.add(DrawerHeader(
child: Text(TimeProgressTrackerApp.name), child: Text(TimeProgressTrackerApp.name),
decoration: BoxDecoration(color: Colors.blue), decoration: BoxDecoration(color: appTheme.primaryColor),
margin: EdgeInsets.zero, margin: EdgeInsets.zero,
)); ));
drawerTileList.add(Container( drawerTileList.add(Container(
color: Colors.lightBlue, color: appTheme.accentColor,
margin: EdgeInsets.only(bottom: 8), margin: EdgeInsets.only(bottom: 8),
child: ListTile( child: ListTile(
title: Text(ProgressDashboardScreen.title), title: Text(ProgressDashboardScreen.title),
@ -96,7 +98,7 @@ class AppDrawer extends StatelessWidget {
context: context, context: context,
applicationName: TimeProgressTrackerApp.name, applicationName: TimeProgressTrackerApp.name,
applicationVersion: " Version $appVersion", applicationVersion: " Version $appVersion",
applicationLegalese: '\u00a9Andreas Fahrecker 2020'); applicationLegalese: '\u00a9Andreas Fahrecker 2020-2021');
}, },
), ),
)); ));

View File

@ -14,8 +14,10 @@ class ProgressDetailSelectDateButton extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
ThemeData appTheme = Theme.of(context);
return FlatButton( return FlatButton(
color: Colors.blue, color: appTheme.accentColor,
child: Text( child: Text(
"$leadingString ${selectedDate.toLocal().toString().split(" ")[0]}"), "$leadingString ${selectedDate.toLocal().toString().split(" ")[0]}"),
onPressed: () async { onPressed: () async {

View File

@ -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. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.0.6+6 version: 0.0.7+7
environment: environment:
sdk: ">=2.7.0 <3.0.0" sdk: ">=2.7.0 <3.0.0"