diff options
Diffstat (limited to 'lib/page_home.dart')
-rw-r--r-- | lib/page_home.dart | 14 |
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); }, ), ], |