summaryrefslogtreecommitdiffstats
path: root/lib/page_hvac.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/page_hvac.dart')
-rw-r--r--lib/page_hvac.dart15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/page_hvac.dart b/lib/page_hvac.dart
index 76e3178..ea6dd3b 100644
--- a/lib/page_hvac.dart
+++ b/lib/page_hvac.dart
@@ -65,7 +65,13 @@ class _HVACFanSpeedState extends State<HVACFanSpeed> {
@override
Widget build(BuildContext context) {
- return Slider(
+ return SliderTheme(
+ data: SliderThemeData(
+ thumbColor: Colors.greenAccent.shade700,
+ activeTrackColor: Colors.greenAccent.shade700,
+ inactiveTrackColor: Colors.blueGrey.shade200,
+ ),
+ child: Slider(
value: _currentSliderValue,
min: 0,
max: 300,
@@ -75,6 +81,7 @@ class _HVACFanSpeedState extends State<HVACFanSpeed> {
_currentSliderValue = value;
});
},
+ ),
);
}
}
@@ -251,9 +258,9 @@ class _HVACPageState extends State<HVACPage> {
return Container(
decoration: BoxDecoration(
gradient: LinearGradient(
- begin: Alignment.topLeft,
- end: Alignment.bottomRight,
- colors: [Colors.black, Colors.teal.shade900])),
+ begin: Alignment.topRight,
+ end: Alignment.bottomLeft,
+ colors: [Colors.blueGrey.shade900, Colors.grey.shade900])),
child: Center(
child: LayoutBuilder(
builder: _buildLayout,