summaryrefslogtreecommitdiffstats
path: root/lib/page_home.dart
diff options
context:
space:
mode:
authorFelipe Erias <felipeerias@igalia.com>2021-12-06 15:08:20 +0900
committerFelipe Erias <felipeerias@igalia.com>2021-12-06 15:08:20 +0900
commit08bf271f7f1f14153a41005718a2090fa8e783f0 (patch)
tree25a98e382ceac2b4285dc7bcd5a7b76d8e293038 /lib/page_home.dart
parent122c32589fb76afc4d04252930221e91c1d31a5f (diff)
Placeholder for the 3D demo
Diffstat (limited to 'lib/page_home.dart')
-rw-r--r--lib/page_home.dart14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/page_home.dart b/lib/page_home.dart
index b985570..0c93c4e 100644
--- a/lib/page_home.dart
+++ b/lib/page_home.dart
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
+import 'package:flutter_homescreen/homescreen.dart';
import 'package:flutter_homescreen/layout_size_helper.dart';
// The Home page.
@@ -27,21 +28,28 @@ class HomePage extends StatelessWidget {
label: "DASHBOARD",
icon: Icons.drive_eta,
onPressed: () {
- onSetNavigationIndex(1);
+ onSetNavigationIndex(PageIndex.dashboard.index);
},
),
_HomePageEntry(
label: "HVAC",
icon: Icons.thermostat,
onPressed: () {
- onSetNavigationIndex(2);
+ onSetNavigationIndex(PageIndex.hvac.index);
},
),
_HomePageEntry(
label: "MEDIA",
icon: Icons.music_note,
onPressed: () {
- onSetNavigationIndex(3);
+ onSetNavigationIndex(PageIndex.media.index);
+ },
+ ),
+ _HomePageEntry(
+ label: "DEMO 3D",
+ icon: Icons.view_in_ar,
+ onPressed: () {
+ onSetNavigationIndex(PageIndex.demo3d.index);
},
),
],