diff options
author | Felipe Erias <felipeerias@igalia.com> | 2021-12-01 14:00:36 +0900 |
---|---|---|
committer | Felipe Erias <felipeerias@igalia.com> | 2021-12-01 14:00:36 +0900 |
commit | df0734e99ee09feaf7da1abec2be57997e2f9f99 (patch) | |
tree | deda996aedf77aac3eb91869ecc2c657da9f5090 /lib/page_dashboard.dart | |
parent | 51a805e0cf2d82795e738691dba9b3569bb9b555 (diff) |
Dark theme
Diffstat (limited to 'lib/page_dashboard.dart')
-rw-r--r-- | lib/page_dashboard.dart | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/lib/page_dashboard.dart b/lib/page_dashboard.dart index 172a38a..9b36f87 100644 --- a/lib/page_dashboard.dart +++ b/lib/page_dashboard.dart @@ -8,7 +8,11 @@ class DashboardPage extends StatelessWidget { Widget build(BuildContext context) { var sizeHelper = LayoutSizeHelper(context); return Container( - color: Colors.indigo.shade50, + decoration: BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topRight, + end: Alignment.bottomLeft, + colors: [Colors.teal.shade900, Colors.grey.shade900])), constraints: BoxConstraints.expand(), alignment: Alignment.center, child: Column( @@ -93,7 +97,6 @@ class _RPMWidget extends StatelessWidget { Container( height: sizeHelper.largeIconSize, width: sizeHelper.largeIconSize, - margin: EdgeInsets.all(sizeHelper.largePadding), child: RotatedBox( quarterTurns: 2, child: CircularProgressIndicator( @@ -112,24 +115,19 @@ class _FuelWidget extends StatelessWidget { @override Widget build(BuildContext context) { var sizeHelper = LayoutSizeHelper(context); - return Stack( - alignment: Alignment.center, + return Row( children: [ Text( 'Fuel', style: Theme.of(context).textTheme.headline4, ), Container( - height: sizeHelper.largeIconSize, + height: sizeHelper.largeIconSize / 4.0, width: sizeHelper.largeIconSize, margin: EdgeInsets.all(sizeHelper.largePadding), - child: RotatedBox( - quarterTurns: 2, - child: CircularProgressIndicator( - value: 0.75, - strokeWidth: sizeHelper.largeIconSize / 4.0, - semanticsLabel: 'RPM indicator', - ), + child: LinearProgressIndicator( + value: 0.75, + semanticsLabel: 'RPM indicator', ), ) ], |