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.

Inheritance

Constructors

BaseRoute({WidgetBuilder builder, String title, RouteSettings settings, bool maintainState = true, bool fullscreenDialog = false, double backGestureWidth = 20.0, bool fullscreenGackGesture, Map<String, dynamic> cupertino, Map<String, dynamic> material})

Properties

backGestureWidth double
default is CupertinoPageRoute._kBackGestureWidth = 20.0. 向右滑返回时离屏幕边缘的宽度
final
builder WidgetBuilder
*** general properties start *** CupertinoPageRoute.builder or MaterialPageRoute.builder
final
cupertino Map<String, dynamic>
final, inherited
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. [...]
read-only, inherited
maintainState bool
CupertinoPageRoute.maintainState or MaterialPageRoute.maintainState
final
material Map<String, dynamic>
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
settings RouteSettings
CupertinoPageRoute.settings or MaterialPageRoute.settings
final
title String
*** general properties end *** *** cupertino properties start *** CupertinoPageRoute.title
final

Methods

build(BuildContext context) → dynamic
inherited
buildBefore(BuildContext context) → void
build之前调用
inherited
buildByCupertino(BuildContext context) Object
*** cupertino properties end ***
override
buildByCupertinoBefore(BuildContext context) → void
buildByCupertino之前调用
inherited
buildByMaterial(BuildContext context) Object
build on material mode
override
buildByMaterialBefore(BuildContext context) → void
buildByMaterial之前调用
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
push<T extends Object>(BuildContext context, {bool rootNavigator = false, bool nullOk = false}) Future<T>
Navigator.push
pushAndRemoveUntil<T extends Object>(BuildContext context, {bool rootNavigator = false, bool nullOk = false, RoutePredicate predicate}) Future<T>
Navigator.pushAndRemoveUntil
toString() String
A string representation of this object. [...]
inherited
valueFromCupertino(String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMap(Map<String, dynamic> map, String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMaterial(String key, dynamic value) → dynamic
从material获取key对应的值, 如果为null取value的值, 如果还是null则取cupertino里的值
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited