aboutsummaryrefslogtreecommitdiffstats
path: root/lib/page_hvac.dart
diff options
context:
space:
mode:
authorFelipe Erias <felipeerias@igalia.com>2021-11-26 15:26:05 +0900
committerFelipe Erias <felipeerias@igalia.com>2021-11-26 15:26:05 +0900
commite1a0e2921bc80807fc0dc73cca77be9bdb2f6b33 (patch)
tree2db930cc2a7be7f3945253dc692e04e1f5f493f4 /lib/page_hvac.dart
parentdf52cca7ddb759f01bb1e96037a88f058e7e23e7 (diff)
Colors and layouts; add tab tor 3D example
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,