BaseRoute<T> class

BaseRoute use CupertinoPageRoute or CupertinoButton.filled by cupertino *** use cupertino = { forceUseMaterial: true } force use MaterialPageRoute on cuperitno. use MaterialPageRoute *** use material = { forceUseCupertino: true } force use CupertinoPageRoute on material.

CupertinoPageRoute: 2021.03.30 MaterialPageRoute: 2021.03.31 modify 2021.06.25 by flutter 2.2.2

Inheritance

Constructors

BaseRoute({WidgetBuilder? builder, String? title, RouteSettings? settings, bool maintainState = true, bool fullscreenDialog = false, double backGestureWidth = 20.0, bool? fullscreenGackGesture, BaseParam? baseParam})

Properties

backGestureWidth → double
default is CupertinoPageRoute._kBackGestureWidth = 20.0. Width from screen edge when swiping right to go back
final
baseParam → BaseParam?
Personalization parameters, gets platform parameters first, then mode parameters
finalinherited
builder → WidgetBuilder?
*** general properties start *** CupertinoPageRoute.builder or MaterialPageRoute.builder
final
fullscreenDialog → bool
CupertinoPageRoute.fullscreenDialog or MaterialPageRoute.fullscreenDialog
final
fullscreenGackGesture → bool?
if is true, backGestureWidth = MediaQuery.of(context).size.width. if is null, default is BaseThemeData.routeFullscreenGackGesture ** Please pay attention to gesture conflict when using
final
hashCode → int
The hash code for this object.
no setterinherited
maintainState → bool
CupertinoPageRoute.maintainState or MaterialPageRoute.maintainState
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings → RouteSettings?
CupertinoPageRoute.settings or MaterialPageRoute.settings
final
title → String?
*** general properties end *** *** cupertino properties start *** CupertinoPageRoute.title
final

Methods

beforeBuild(BuildContext context) → void
Called before build
inherited
beforeBuildByCupertino(BuildContext context) → void
Called before buildByCupertino
inherited
beforeBuildByCupertinoNative(BuildContext context) → void
Called before buildByCupertinoNative (native iOS implementation)
inherited
beforeBuildByMaterial(BuildContext context) → void
Called before buildByMaterial
inherited
build(BuildContext context) → dynamic
inherited
buildByCupertino(BuildContext context) → Object
*** cupertino properties end ***
buildByCupertinoNative(BuildContext context) → dynamic
build on cupertino mode with native iOS components (cupertino_native package) This is called when baseParam.nativeIOS = true Default implementation falls back to buildByCupertino()
inherited
buildByMaterial(BuildContext context) → Object
build on material mode
commonBuild(BuildContext context, BaseParam? baseParam) → dynamic
inherited
getBuildMode(BaseParam? baseParam) → WidgetBuildMode
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
push(BuildContext context, {bool rootNavigator = false}) → Future<T?>
Navigator.push
pushAndRemoveUntil(BuildContext context, RoutePredicate predicate, {bool rootNavigator = false}) → Future<T?>
Navigator.pushAndRemoveUntil
toString() → String
A string representation of this object.
inherited
valueOf(String key, dynamic value) → dynamic
inherited
valueOfBaseParam(BaseParam? baseParam, String key, dynamic value) → dynamic
No reflection available in Dart First get value from platform, then from mode, finally from value itself
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited