Begin add settings
This commit is contained in:
parent
96a8f41525
commit
2d8cb121b5
6 changed files with 229 additions and 15 deletions
|
@ -1,8 +1,9 @@
|
|||
import 'package:desktopapp/widgets/pages/home.dart';
|
||||
import 'package:desktopapp/widgets/pages/settings.dart';
|
||||
import 'package:desktopapp/widgets/pages/tutorial.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
enum Routes { streamlabsTutorial, home }
|
||||
enum Routes { streamlabsTutorial, home, mailSettings }
|
||||
|
||||
extension RoutesExtension on Routes {
|
||||
String get path {
|
||||
|
@ -11,6 +12,8 @@ extension RoutesExtension on Routes {
|
|||
return '/streamlabs/tutorial';
|
||||
case Routes.home:
|
||||
return '/home';
|
||||
case Routes.mailSettings:
|
||||
return '/mail/settings';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -18,6 +21,7 @@ extension RoutesExtension on Routes {
|
|||
var routes = <String, WidgetBuilder>{
|
||||
Routes.streamlabsTutorial.path: (context) => TutorialPage(),
|
||||
Routes.home.path: (context) => const HomePage(),
|
||||
Routes.mailSettings.path: (context) => const Settings(),
|
||||
};
|
||||
|
||||
var initialRoute = Routes.home.path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue