BasePageViewPage class abstract
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BasePage
- BaseMultiPage
- BasePageViewPage
Constructors
- BasePageViewPage.new({Key? key, bool lazyCreate = false, bool isCanBackPressed = false, double appbarHeight = 0, bool isNeedAppBar = false, bool isNeedScaffold = false, bool extendBodyBehindAppBar = false, bool resizeToAvoidBottomInset = false, Color bodyColor = ColorConfig.white_f2f2f2, required int pageIndex, required KeepAliveController? keepAliveController})
-
PageView的子页面动态控制wantKeepAlive基础类,如果不需要动态控制wantKeepAlive可以直接使用其他BasePage
lazyCreate
是否等第一帧绘制完成之后在走onCreate生命周期isCanBackPressed
是否支持返回事件appbarHeight
appbar的高度,默认56isNeedAppBar
是否需要appbarextendBodyBehindAppBar
resizeToAvoidBottomInset
pageIndex
当前page的下标keepAliveController
可以通过
Properties
- appbarHeight → double
-
finalinherited
- bodyColor → Color
-
finalinherited
- extendBodyBehindAppBar → bool
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCanBackPressed → bool
-
finalinherited
- isNeedAppBar → bool
-
finalinherited
- isNeedScaffold → bool
-
finalinherited
- keepAliveController → KeepAliveController?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lazyCreate → bool
-
finalinherited
- lifecycle → PageLifecycle
-
finalinherited
- pageIndex → int
-
final
- resizeToAvoidBottomInset → bool
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< BasePageViewPage> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited