1
0
Fork 0
mrtiboute/lib/classes/routes.dart

23 lines
616 B
Dart

import 'package:desktopapp/widgets/pages/home.dart';
import 'package:desktopapp/widgets/pages/tutorial.dart';
import 'package:flutter/material.dart';
enum Routes { streamlabsTutorial, home }
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) => TutorialPage(),
Routes.home.path: (context) => const HomePage(),
};
var initialRoute = Routes.streamlabsTutorial.path;