From 77ba5c09a4d90a7fa6585b6d1dbbe279b3d68593 Mon Sep 17 00:00:00 2001 From: Felipe Erias Date: Wed, 1 Dec 2021 14:43:33 +0900 Subject: Colors and styles --- lib/homescreen.dart | 6 +++++- lib/page_hvac.dart | 16 ++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/homescreen.dart b/lib/homescreen.dart index 29702aa..3c1934f 100644 --- a/lib/homescreen.dart +++ b/lib/homescreen.dart @@ -136,7 +136,11 @@ class _HomescreenState extends State with TickerProviderStateMixin { ], ), ), - const VerticalDivider(thickness: 1, width: 1), + VerticalDivider( + thickness: 1, + width: 1, + color: Colors.grey.shade900, + ), // This is the main content. Expanded( child: AnimatedSwitcher( diff --git a/lib/page_hvac.dart b/lib/page_hvac.dart index 47aea03..2b5b825 100644 --- a/lib/page_hvac.dart +++ b/lib/page_hvac.dart @@ -102,7 +102,7 @@ String circulationInactive = 'images/HMI_HVAC_Circulation_Inactive.png'; // Get from API bool leftChairSelected = true; bool rightChairSelected = true; -bool ACSelected = true; +bool acSelected = true; bool autoSelected = true; bool circulationSelected = true; @@ -192,18 +192,18 @@ class _HVACPageState extends State { margin: EdgeInsets.all(sizeHelper.defaultPadding), decoration: BoxDecoration( border: Border.all( - color: ACSelected ? Colors.green : Colors.grey, - ), - borderRadius: BorderRadius.circular(20)), + color: acSelected ? Colors.green : Colors.grey, + ), + ), child: OutlinedButton( onPressed: () { setState(() { - ACSelected = !ACSelected; + acSelected = !acSelected; }); }, child: Text( "A / C", - style: ACSelected ? buttonTextStyle : unselectedButtonTextStyle, + style: acSelected ? buttonTextStyle : unselectedButtonTextStyle, ), ), ), @@ -215,7 +215,7 @@ class _HVACPageState extends State { border: Border.all( color: autoSelected ? Colors.green : Colors.grey, ), - borderRadius: BorderRadius.circular(20)), + ), child: OutlinedButton( onPressed: () { setState(() { @@ -237,7 +237,7 @@ class _HVACPageState extends State { border: Border.all( color: circulationSelected ? Colors.green : Colors.grey, ), - borderRadius: BorderRadius.circular(20)), + ), child: OutlinedButton( onPressed: () { setState(() { -- cgit 1.2.3-korg