Finish to add configuration tutorial
This commit is contained in:
parent
a3b25c3ee1
commit
4e8fd12fdc
9 changed files with 236 additions and 39 deletions
|
@ -1,19 +1,23 @@
|
|||
import 'package:desktopapp/widgets/pages/home.dart';
|
||||
import 'package:desktopapp/widgets/pages/tutorial.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
enum Routes { streamlabsTutorial }
|
||||
enum Routes { streamlabsTutorial, home }
|
||||
|
||||
extension on Routes {
|
||||
extension RoutesExtension on Routes {
|
||||
String get path {
|
||||
switch (this) {
|
||||
case Routes.streamlabsTutorial:
|
||||
return '/streamlabs/tutorial';
|
||||
case Routes.home:
|
||||
return '/home';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var routes = <String, WidgetBuilder>{
|
||||
Routes.streamlabsTutorial.path: (context) => const TutorialPage(),
|
||||
Routes.streamlabsTutorial.path: (context) => TutorialPage(),
|
||||
Routes.home.path: (context) => const HomePage(),
|
||||
};
|
||||
|
||||
var initialRoute = Routes.streamlabsTutorial.path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue