aboutsummaryrefslogtreecommitdiffstats
path: root/lib/presentation/router/routes/routes.dart
blob: 45a1a14995e90f8c42e2d539d65c0fad5709cd32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import 'package:flutter_ics_homescreen/presentation/screens/settings/settings_screens/date_time/date/date_screen.dart';
import 'package:flutter_ics_homescreen/presentation/screens/settings/settings_screens/date_time/date/select_year.dart';
import 'package:flutter_ics_homescreen/presentation/screens/settings/settings_screens/date_time/time/time_screen.dart';

import '../../../../export.dart';

List<Page<dynamic>> onGenerateAppViewPages(
  AppState state,
  List<Page<dynamic>> pages,
) {
  switch (state) {
    case AppState.home:
      return [DasboardPage.page()];
    case AppState.dashboard:
      return [DasboardPage.page()];
    case AppState.hvac:
      return [HvacPage.page()];
    case AppState.apps:
      return [AppsPage.page()];
    case AppState.media:
      return [MediaPage.page()];
    case AppState.settings:
      return [SettingsPage.page()];
    case AppState.splash:
      return [SplashPage.page()];
    case AppState.dateTime:
      return [DateTimePage.page()];
    case AppState.bluetooth:
      return [BluetoothPage.page()];
    case AppState.wifi:
      return [WifiPage.page()];
    case AppState.wired:
      return [WiredPage.page()];
    case AppState.audioSettings:
      return [AudioSettingsPage.page()];
    case AppState.profiles:
      return [ProfilesPage.page()];
    case AppState.units:
      return [UnitsPage.page()];
    case AppState.versionInfo:
      return [VersionInfoPage.page()];
    case AppState.weather:
      return [WeatherPage.page()];
    case AppState.distanceUnit:
      return [DistanceUnitPage.page()];
    case AppState.tempUnit:
      return [TemperatureUnitPage.page()];
    case AppState.clock:
      return [ClockPage.page()];
    case AppState.newProfile:
      return [NewProfilePage.page()];
    case AppState.date:
      return [DatePage.page()];
    case AppState.time:
      return [TimePage.page()];
    case AppState.year:
      return [SelectYearPage.page()];
  }
}