aboutsummaryrefslogtreecommitdiffstats
path: root/lib/page_dashboard.dart
diff options
context:
space:
mode:
authorFelipe Erias <felipeerias@igalia.com>2021-11-17 13:04:50 +0900
committerFelipe Erias <felipeerias@igalia.com>2021-11-17 13:04:50 +0900
commitcc9124cd1145ecd0b0c5b2baeb0a3abb7d706a29 (patch)
treedf243ec81d52308cf36ba467a76a7d541f8aa6fb /lib/page_dashboard.dart
parent8c32227596b5de15417e667cca84178a157543a1 (diff)
Integrate HVAC page
Diffstat (limited to 'lib/page_dashboard.dart')
-rw-r--r--lib/page_dashboard.dart26
1 files changed, 22 insertions, 4 deletions
diff --git a/lib/page_dashboard.dart b/lib/page_dashboard.dart
index bce7590..2ab1d38 100644
--- a/lib/page_dashboard.dart
+++ b/lib/page_dashboard.dart
@@ -58,10 +58,7 @@ class DashboardPage extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
- Text(
- 'RPM',
- style: Theme.of(context).textTheme.headline4,
- ),
+ _RPMWidget(),
Text(
'Fuel',
style: Theme.of(context).textTheme.headline4,
@@ -73,3 +70,24 @@ class DashboardPage extends StatelessWidget {
);
}
}
+
+// ignore: unused_element
+class _RPMWidget extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return Row(
+ mainAxisAlignment: MainAxisAlignment.start,
+ children: [
+ Icon(Icons.fastfood),
+ Container(
+ height: 20,
+ width: 70,
+ child: LinearProgressIndicator(
+ value: 0.75,
+ semanticsLabel: 'Linear progress indicator',
+ ),
+ ),
+ ],
+ );
+ }
+}