35 lines
919 B
Dart
35 lines
919 B
Dart
|
|
import 'package:get/get.dart';
|
|
import 'package:novyronst/pages/play/pages/laucher_page.dart';
|
|
|
|
class HelpRouters {
|
|
static const String launcher = '/launcher';
|
|
}
|
|
|
|
class HelpPages {
|
|
static const initial = HelpRouters.launcher;
|
|
|
|
static final List<GetPage> routes = [
|
|
routePage(name: HelpRouters.launcher, page: ()=> LauncherPage())
|
|
];
|
|
}
|
|
|
|
GetPage routePage({
|
|
required String name,
|
|
required GetPageBuilder page,
|
|
Bindings? binding,
|
|
Transition transition = Transition.rightToLeft,
|
|
Duration transitionDuration = const Duration(milliseconds: 300),
|
|
CustomTransition? customTransition,
|
|
bool popGesture = true, // Allow iOS swipe-back gesture by default
|
|
}) {
|
|
return GetPage(
|
|
name: name,
|
|
page: page,
|
|
binding: binding,
|
|
transition: transition,
|
|
transitionDuration: transitionDuration,
|
|
customTransition: customTransition,
|
|
popGesture: popGesture, // Pass through to GetPage
|
|
);
|
|
} |