summaryrefslogtreecommitdiffstats
path: root/lib/page_hvac.dart
diff options
context:
space:
mode:
authorFelipe Erias <felipeerias@igalia.com>2021-11-26 13:54:05 +0900
committerFelipe Erias <felipeerias@igalia.com>2021-11-26 13:54:05 +0900
commitdf52cca7ddb759f01bb1e96037a88f058e7e23e7 (patch)
tree95ab47053a2606e93209b827d9a10171b1ea8f0a /lib/page_hvac.dart
parent23f7cad0b4b33f797837f66e42b36c231b1f1801 (diff)
Simple Media page
Diffstat (limited to 'lib/page_hvac.dart')
-rw-r--r--lib/page_hvac.dart16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/page_hvac.dart b/lib/page_hvac.dart
index 230233d..76e3178 100644
--- a/lib/page_hvac.dart
+++ b/lib/page_hvac.dart
@@ -3,20 +3,20 @@ import 'dart:math';
import 'package:flutter/material.dart';
import 'package:numberpicker/numberpicker.dart';
-class HVACPage extends StatelessWidget {
- const HVACPage({Key? key}) : super(key: key);
+class HVACPageContainer extends StatelessWidget {
+ const HVACPageContainer({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
constraints: BoxConstraints.expand(),
alignment: Alignment.center,
- child: const MainPage(title: 'AGL - Flutter HVAC'),
+ child: const HVACPage(title: 'AGL - Flutter HVAC'),
);
}
}
class _TemperatureSelector extends StatefulWidget {
-double referenceFontSize = 24;
+final double referenceFontSize = 24;
_TemperatureSelector({Key? key, referenceFontSize}) : super(key: key);
@@ -79,20 +79,20 @@ class _HVACFanSpeedState extends State<HVACFanSpeed> {
}
}
-class MainPage extends StatefulWidget {
- const MainPage({Key? key, required this.title}) : super(key: key);
+class HVACPage extends StatefulWidget {
+ const HVACPage({Key? key, required this.title}) : super(key: key);
final String title;
@override
- State<MainPage> createState() => _MyHomePageState();
+ State<HVACPage> createState() => _HVACPageState();
}
String chairOn = 'images/HMI_HVAC_Left_Chair_ON.png';
String chairOff = 'images/HMI_HVAC_Right_Chair_ON.png';
bool selected = true; // Get from API
-class _MyHomePageState extends State<MainPage> {
+class _HVACPageState extends State<HVACPage> {
final double fanSpeed = 20;
Widget _buildLayout(BuildContext context, BoxConstraints constraints) {