cpd_2022_zi/lib/services/pages_service.dart

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