BaseStatePage<T extends BaseStatefulPage<PageArgument?>> class abstract

界面状态逻辑基类. 参数存放在widget.data

Inheritance

Constructors

BaseStatePage()

Properties

context BuildContext
The location in the tree where this widget builds.
no setterinherited
currentKey Key
设置当前Key用户后续判断
no getterinherited
hashCode int
The hash code for this object.
no setterinherited
isTopPage bool
当前路由是否栈顶
no setterinherited
mounted bool
Whether this State object is currently in a tree.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackLocal int
判断页面当前处于栈内位置 如果不存在则为-1
no setterinherited
systemUI List<SystemUiOverlay>?
系统UI配置 如:状态栏、导航栏等
no setterinherited
systemUiOverlayStyle SystemUiOverlayStyle?
系统UI风格 从当前最近父类开始找
no setterinherited
widget → T
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeAccessibilityFeatures() → void
-------- WidgetsBindingObserver监听方法 -------- 当前系统改变了一些访问性活动的回调
inherited
didChangeAppLifecycleState(AppLifecycleState state) → void
生命周期变化时回调 resumed:应用可见并可响应用户操作 inactive:用户可见,但不可响应用户操作 paused:已经暂停了,用户不可见、不可操作 suspending:应用被挂起,此状态IOS永远不会回调
override
didChangeDependencies() → void
Called when a dependency of this State object changes.
override
didChangeLocales(List<Locale>? locales) → void
用户本地设置变化时调用,如系统语言改变
inherited
didChangeMetrics() → void
应用尺寸改变时回调,例如旋转
inherited
didChangePlatformBrightness() → void
当平台亮度变化时调用
inherited
didChangeTextScaleFactor() → void
文字系数变化
inherited
didChangeViewFocus(ViewFocusEvent event) → void
Called whenever the PlatformDispatcher receives a notification that the focus state on a view has changed.
inherited
didHaveMemoryPressure() → void
低内存回调
inherited
didPop() → void
回到这个组件前
override
didPopNext() → void
回到这个组件
override
didPopRoute() Future<bool>
当系统告诉应用弹出当前路由时调用
inherited
didPush() → void
进入下个页面前
inherited
didPushNext() → void
进入下个页面
inherited
didPushRoute(String route) Future<bool>
当主机告诉应用程序将新路由推送到导航器时调用
inherited
didPushRouteInformation(RouteInformation routeInformation) Future<bool>
当主机告诉应用程序将新的RouteInformation和恢复状态推送到路由器时调用
inherited
didRequestAppExit() Future<AppExitResponse>
Called when a request is received from the system to exit the application.
inherited
didUpdateWidget(covariant T oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
override
disposeRouteObserver() → void
销毁路由感应
inherited
handleCancelBackGesture() → void
Called when a predictive back gesture is canceled, indicating that no navigation should occur.
inherited
handleCommitBackGesture() → void
Called when a predictive back gesture is finished successfully, indicating that the current route should be popped.
inherited
handleStartBackGesture(PredictiveBackEvent backEvent) bool
Called at the start of a predictive back gesture.
inherited
handleUpdateBackGestureProgress(PredictiveBackEvent backEvent) → void
Called when a predictive back gesture moves.
inherited
init() → void
初始化
initState() → void
Called when this object is inserted into the tree.
override
launchRouteObserver() → void
启动路由感应
inherited
launchWidgetBinding() → void
-------- RouteAware路由方法 -------- 绑定组件观察者
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onFirstBuildFinish() → void
第一帧 页面构建完成
onTranslateAnimationFinish() → void
转场动画完成
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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