ExtendedScaffold class

ExtendedScaffold

Inheritance
Available Extensions

Constructors

ExtendedScaffold({Key? key, bool safeLeft = false, bool safeTop = false, bool safeRight = false, bool safeBottom = false, bool isStack = false, bool isScroll = false, bool onWillPopOverlayClose = false, bool useSingleChildScrollView = true, bool extendBody = false, bool extendBodyBehindAppBar = false, bool primary = true, DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start, bool drawerEnableOpenDragGesture = true, bool endDrawerEnableOpenDragGesture = true, Widget? appBar, Widget? body, EdgeInsetsGeometry? padding, Widget? floatingActionButton, FloatingActionButtonLocation? floatingActionButtonLocation, FloatingActionButtonAnimator? floatingActionButtonAnimator, List<Widget>? persistentFooterButtons, Widget? drawer, Widget? endDrawer, Widget? bottomNavigationBar, Widget? bottomSheet, bool? resizeToAvoidBottomInset, DrawerCallback? onDrawerChanged, DrawerCallback? onEndDrawerChanged, double? drawerEdgeDragWidth, Color? drawerScrimColor, WillPopCallback? onWillPop, double? appBarHeight, List<Widget>? children, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, Axis direction = Axis.vertical, EdgeInsetsGeometry? margin, Decoration? decoration, RefreshConfig? refreshConfig, String? restorationId, Color? backgroundColor, SystemUiOverlayStyle? systemOverlayStyle, AlignmentDirectional persistentFooterAlignment = AlignmentDirectional.centerEnd})
const

Properties

appBar Widget?
final
appBarFun PreferredSizeWidget?
no setter
appBarHeight double?
限制 appBar 高度
final
backgroundColor Color?
final
body Widget?
Scaffold相关属性
final
bottomNavigationBar Widget?
final
bottomSheet Widget?
final
children List<Widget>?
相当于给body 套用 ColumnRowStack
final
crossAxisAlignment CrossAxisAlignment
children.length > 0 && isStack=false 有效;
final
decoration Decoration?
final
direction Axis
children.length > 0 && isStack=false 有效;
final
drawer Widget?
final
drawerDragStartBehavior DragStartBehavior
final
drawerEdgeDragWidth double?
final
drawerEnableOpenDragGesture bool
final
drawerScrimColor Color?
final
endDrawer Widget?
final
endDrawerEnableOpenDragGesture bool
final
extendBody bool
final
extendBodyBehindAppBar bool
final
floatingActionButton Widget?
final
floatingActionButtonAnimator FloatingActionButtonAnimator?
final
floatingActionButtonLocation FloatingActionButtonLocation?
final
hashCode int
The hash code for this object.
no setterinherited
isScroll bool
是否添加滚动组件
final
isStack bool
children.length > 0有效; 添加 Stack组件
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisAlignment MainAxisAlignment
children.length > 0 && isStack=false 有效;
final
margin EdgeInsetsGeometry?
final
onDrawerChanged DrawerCallback?
final
onEndDrawerChanged DrawerCallback?
final
onWillPop WillPopCallback?
返回按键监听
final
onWillPopOverlayClose bool
true 点击android实体返回按键先关闭Overlay【toast loading ...】但不pop 当前页面 false 点击android实体返回按键先关闭Overlay【toast loading ...】并pop 当前页面
final
padding EdgeInsetsGeometry?
final
persistentFooterAlignment AlignmentDirectional
final
persistentFooterButtons List<Widget>?
final
primary bool
final
refreshConfig RefreshConfig?
****** 刷新组件相关 ****** ///
final
resizeToAvoidBottomInset bool?
final
restorationId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeBottom bool
final
safeLeft bool
****** SafeArea ****** ///
final
safeRight bool
final
safeTop bool
final
systemOverlayStyle SystemUiOverlayStyle?
在不设置AppBar的时候 修改状态栏颜色
final
universal Universal
no setter
useSingleChildScrollView bool
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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
onWillPopFun() Future<bool>
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}) 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