summaryrefslogtreecommitdiffstats
path: root/lib/kuksa-server/on_boarding_page.dart
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-12-24 15:30:10 -0500
committerScott Murray <scott.murray@konsulko.com>2022-12-29 06:34:45 +0000
commitd9c46db74ab0947ae50a47f1aa1a95cadd1020e8 (patch)
treee9cad647d01f546107dfa820363a80c48e33c6e2 /lib/kuksa-server/on_boarding_page.dart
parentb730a26f42117a50d308c50444d3bbb3f0aaa20c (diff)
Rework temperature controls
Rework the temperature controls to use NumberPicker widgets so they function more like a user would expect. The associated Riverpod providers have been updated to track the temperature value directly, and some minor layout tweaks have also been made. Bug-AGL: SPEC-4644 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I069e0bd53c79d73cc7a60045309efdfeb9409fbc
Diffstat (limited to 'lib/kuksa-server/on_boarding_page.dart')
-rw-r--r--lib/kuksa-server/on_boarding_page.dart10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/kuksa-server/on_boarding_page.dart b/lib/kuksa-server/on_boarding_page.dart
index a14145c..1bd3a79 100644
--- a/lib/kuksa-server/on_boarding_page.dart
+++ b/lib/kuksa-server/on_boarding_page.dart
@@ -24,23 +24,19 @@ class _OnBoardingPageState extends ConsumerState<OnBoardingPage> {
late Timer _timer;
late WebSocket _socket;
-
@override
void initState() {
super.initState();
_socket = widget.socket;
- VISS.init(widget.socket,ref);
+ VISS.init(widget.socket, ref);
_timer = Timer.periodic(const Duration(seconds: 2), (timer) {
-
if (widget.socket.readyState == 3) {
ref.refresh(sockConnectprovider(widget.client));
}
});
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
widget.socket.listen(
- (data) {
-
- },
+ (data) {},
onError: (e, stk) {
print(e.toString());
ref.refresh(sockConnectprovider(widget.client));
@@ -58,7 +54,7 @@ class _OnBoardingPageState extends ConsumerState<OnBoardingPage> {
@override
Widget build(BuildContext context) {
- return MyHome_Page(
+ return HomePage(
socket: _socket,
);
}