2023-02-27 14:57:56 +01:00
|
|
|
import 'package:flutter/material.dart';
|
2023-02-27 17:27:01 +01:00
|
|
|
import '../pages/interval_page.dart';
|
|
|
|
import '../pages/mood_page.dart';
|
|
|
|
import '../pages/relapse_page.dart';
|
|
|
|
import '../pages/scanner_page.dart';
|
|
|
|
import '../pages/sleep_page.dart';
|
2023-02-27 14:57:56 +01:00
|
|
|
|
2023-03-02 18:35:03 +01:00
|
|
|
enum Pages {
|
|
|
|
mood,
|
|
|
|
sleep,
|
|
|
|
relapse,
|
|
|
|
timer,
|
|
|
|
settings,
|
|
|
|
}
|
|
|
|
|
|
|
|
const Map<Pages, Map<String, dynamic>> pages = {
|
|
|
|
Pages.mood: {
|
|
|
|
'title': 'Stimmung',
|
2023-02-27 14:57:56 +01:00
|
|
|
'page': MoodPage(),
|
2023-03-02 18:35:03 +01:00
|
|
|
'icon': Icon(Icons.mood_outlined, color: Colors.black),
|
2023-02-27 14:57:56 +01:00
|
|
|
},
|
2023-03-02 18:35:03 +01:00
|
|
|
Pages.sleep: {
|
|
|
|
'title': 'Schlaf',
|
2023-02-27 14:57:56 +01:00
|
|
|
'page': SleepPage(),
|
2023-03-02 18:35:03 +01:00
|
|
|
'icon': Icon(Icons.bedtime_outlined, color: Colors.black),
|
2023-02-27 14:57:56 +01:00
|
|
|
},
|
2023-03-02 19:31:47 +01:00
|
|
|
Pages.timer: {
|
2023-03-02 18:35:03 +01:00
|
|
|
'title': 'Timer',
|
2023-02-27 14:57:56 +01:00
|
|
|
'page': IntervalTimerPage(),
|
2023-03-02 18:35:03 +01:00
|
|
|
'icon': Icon(Icons.timer_outlined, color: Colors.black),
|
2023-02-27 14:57:56 +01:00
|
|
|
},
|
2023-03-02 19:31:47 +01:00
|
|
|
Pages.relapse: {
|
2023-03-02 18:35:03 +01:00
|
|
|
'title': 'Rückfall',
|
2023-02-27 14:57:56 +01:00
|
|
|
'page': RelapsePage(),
|
2023-03-01 20:45:00 +01:00
|
|
|
'icon': Icon(Icons.smoke_free_outlined, color: Colors.black),
|
2023-02-27 14:57:56 +01:00
|
|
|
},
|
2023-03-02 18:35:03 +01:00
|
|
|
Pages.settings: {
|
|
|
|
'title': 'Scanner',
|
2023-02-27 14:57:56 +01:00
|
|
|
'page': ScannerPage(),
|
2023-03-02 18:35:03 +01:00
|
|
|
'icon': Icon(Icons.camera_alt_outlined, color: Colors.black),
|
2023-02-27 14:57:56 +01:00
|
|
|
},
|
|
|
|
};
|