BaseScaffold class

ExtendedScaffold

Inheritance
Available extensions

Constructors

BaseScaffold({Key? key, Widget? body, Widget? child, List<Widget>? children, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, Axis direction = Axis.vertical, bool safeLeft = false, bool safeTop = false, bool safeRight = false, bool safeBottom = false, bool isScroll = false, bool isStack = false, EdgeInsetsGeometry? padding, Decoration? decoration, bool useSingleChildScrollView = true, EdgeInsetsGeometry? margin, RefreshConfig? refreshConfig, VoidCallback? onRefresh, VoidCallback? onLoading, PopInvokedCallback? onPopInvoked, bool canPop = true, bool isCloseOverlay = false, bool enableDoubleClickExit = false, String doubleClickExitPrompt = '再次点击返回键退出', bool extendBody = false, bool extendBodyBehindAppBar = false, bool primary = true, String? restorationId, Widget? floatingActionButton, FloatingActionButtonLocation? floatingActionButtonLocation, FloatingActionButtonAnimator? floatingActionButtonAnimator, List<Widget>? persistentFooterButtons, Widget? drawer, Widget? endDrawer, Widget? bottomNavigationBar, Widget? bottomSheet, bool? resizeToAvoidBottomInset, DrawerCallback? onDrawerChanged, DrawerCallback? onEndDrawerChanged, Color? drawerScrimColor, DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start, double? drawerEdgeDragWidth, bool drawerEnableOpenDragGesture = true, bool endDrawerEnableOpenDragGesture = true, Color? backgroundColor, AlignmentDirectional persistentFooterAlignment = AlignmentDirectional.centerEnd, PreferredSizeWidget? appBar, double? appBarHeight, double? elevation, Widget? appBarTitle, String? appBarTitleText, Widget? appBarAction, List<Widget>? appBarActions, Widget? appBarLeading, double? leadingWidth, Color? appBarBackgroundColor, Color? appBarForegroundColor, bool appBarPrimary = true, PreferredSizeWidget? appBarBottom, IconThemeData? appBarIconTheme, bool isMaybePop = false, bool enableLeading = true, SystemUiOverlayStyle? systemOverlayStyle, bool centerTitle = true, IconThemeData? actionsIconTheme, bool automaticallyImplyLeading = true, bool excludeHeaderSemantics = true, double bottomOpacity = 1.0, Widget? flexibleSpace, ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate, double? scrolledUnderElevation, Color? shadowColor, ShapeBorder? shape, Color? surfaceTintColor, double? titleSpacing, TextStyle? titleTextStyle, double? toolbarHeight, double toolbarOpacity = 1.0, TextStyle? toolbarTextStyle})
const

Properties

actionsIconTheme IconThemeData?
final
appBar PreferredSizeWidget?
final
appBarAction Widget?
final
appBarActions List<Widget>?
final
appBarBackgroundColor Color?
final
appBarBottom PreferredSizeWidget?
final
appBarForegroundColor Color?
final
appBarHeight double?
限制 appBar 高度
final
appBarIconTheme IconThemeData?
final
appBarLeading Widget?
final
appBarPrimary bool
final
appBarTitle Widget?
final
appBarTitleText String?
final
automaticallyImplyLeading bool
final
backgroundColor Color?
Scaffold相关属性
final
body Widget?
body > child > children
final
bottomNavigationBar Widget?
final
bottomOpacity double
final
bottomSheet Widget?
final
canPop bool
final
centerTitle bool
final
child Widget?
child
final
children List<Widget>?
相当于给child 套用 ColumnRowStack
final
crossAxisAlignment CrossAxisAlignment
children.length > 0 && isStack=false 有效;
final
decoration Decoration?
final
direction Axis
children.length > 0 && isStack=false 有效;
final
doubleClickExitPrompt String
final
drawer Widget?
final
drawerDragStartBehavior DragStartBehavior
final
drawerEdgeDragWidth double?
final
drawerEnableOpenDragGesture bool
final
drawerScrimColor Color?
final
elevation double?
****** AppBar ****** ///
final
enableDoubleClickExit bool
final
enableLeading bool
final
endDrawer Widget?
final
endDrawerEnableOpenDragGesture bool
final
excludeHeaderSemantics bool
final
extendBody bool
final
extendBodyBehindAppBar bool
final
flexibleSpace Widget?
final
floatingActionButton Widget?
final
floatingActionButtonAnimator FloatingActionButtonAnimator?
final
floatingActionButtonLocation FloatingActionButtonLocation?
final
hashCode int
The hash code for this object.
no setterinherited
isCloseOverlay bool
true 点击android实体返回按键先关闭Overlay【toast loading ...】但不pop 当前页面 false 点击android实体返回按键先关闭Overlay【toast loading ...】并pop 当前页面
final
isMaybePop bool
final
isScroll bool
是否添加滚动组件
final
isStack bool
children.length > 0有效; 添加 Stack组件
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leadingWidth double?
final
mainAxisAlignment MainAxisAlignment
children.length > 0 && isStack=false 有效;
final
margin EdgeInsetsGeometry?
final
notificationPredicate ScrollNotificationPredicate
final
onDrawerChanged DrawerCallback?
final
onEndDrawerChanged DrawerCallback?
final
onLoading VoidCallback?
final
onPopInvoked PopInvokedCallback?
final
onRefresh VoidCallback?
****** Refreshed ****** ///
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
scrolledUnderElevation double?
final
shadowColor Color?
final
shape ShapeBorder?
final
surfaceTintColor Color?
final
systemOverlayStyle SystemUiOverlayStyle?
在不设置AppBar的时候 修改状态栏颜色
final
titleSpacing double?
final
titleTextStyle TextStyle?
final
toolbarHeight double?
final
toolbarOpacity double
final
toolbarTextStyle TextStyle?
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
buildAppBar(BuildContext context) PreferredSizeWidget?
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
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