cpd_2022_zi/lib/services/pages_service.dart

48 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
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';
enum Pages {
mood,
sleep,
relapse,
timer,
settings,
}
const Map<Pages, Map<String, dynamic>> pages = {
Pages.mood: {
'title': 'Stimmung',
'page': MoodPage(),
'icon': Icon(Icons.mood_outlined, color: Colors.black),
'todo': false,
},
Pages.sleep: {
'title': 'Schlaf',
'page': SleepPage(),
'icon': Icon(Icons.bedtime_outlined, color: Colors.black),
'todo': false,
},
Pages.relapse: {
'title': 'Timer',
'page': IntervalTimerPage(),
'icon': Icon(Icons.timer_outlined, color: Colors.black),
'todo': false,
},
Pages.timer: {
'title': 'Rückfall',
'page': RelapsePage(),
'icon': Icon(Icons.smoke_free_outlined, color: Colors.black),
'todo': false,
},
Pages.settings: {
'title': 'Scanner',
'page': ScannerPage(),
'icon': Icon(Icons.camera_alt_outlined, color: Colors.black),
'todo': false,
},
};