1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import 'package:flutter/material.dart';
- import 'package:get/get.dart';
- typedef VPageBuilder = Widget Function();
- class VRouteSetting<T> extends GetPage<T> {
- VRouteSetting(
- String name,
- Widget Function() pageBuilder, {
- String? title,
- Bindings? binding,
- Transition? transition,
- List<GetPage>? children,
- List<GetMiddleware>? middlewares,
- bool fullscreenDialog = false,
- this.navigatorId,
- }) : super(
- name: name,
- page: pageBuilder,
- title: title,
- binding: binding,
- transition: Transition.rightToLeft,
- transitionDuration: const Duration(milliseconds: 500),
-
- children: children ?? const [],
- middlewares: middlewares,
- fullscreenDialog: fullscreenDialog,
- popGesture: false,
- );
-
- final int? navigatorId;
- }
|