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(
|
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,
|
||||||
|
@ -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 {
|
||||||
|
@ -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');
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
||||||
|