BasicScaffold class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ExtendedScaffold
- BasicScaffold
- Available Extensions
Constructors
-
BasicScaffold({Key? key, 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, bool? resizeToAvoidBottomInset = false, EdgeInsetsGeometry? padding, Widget? endDrawer, Widget? floatingActionButton, FloatingActionButtonAnimator? floatingActionButtonAnimator, FloatingActionButtonLocation? floatingActionButtonLocation, bool onWillPopOverlayClose = false, Decoration? decoration, bool useSingleChildScrollView = true, EdgeInsetsGeometry? margin, Widget? bottomSheet, Widget? drawer, DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start, double? drawerEdgeDragWidth, bool drawerEnableOpenDragGesture = true, Color? drawerScrimColor, bool endDrawerEnableOpenDragGesture = true, DrawerCallback? onDrawerChanged, DrawerCallback? onEndDrawerChanged, bool extendBody = false, bool extendBodyBehindAppBar = false, bool primary = true, String? restorationId, Color? backgroundColor, bool isRootPage = false, WillPopCallback? onWillPop, VoidCallback? onRefresh, VoidCallback? onLoading, double? appBarHeight, Widget? appBar, 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})
Properties
- appBar → Widget?
-
finalinherited
- appBarHeight → double?
-
限制 appBar 高度
finalinherited
- backgroundColor → Color?
-
finalinherited
- body → Widget?
-
Scaffold相关属性
finalinherited
-
finalinherited
- bottomSheet → Widget?
-
finalinherited
-
children
→ List<
Widget> ? -
相当于给body 套用 Column、Row、Stack
finalinherited
- crossAxisAlignment → CrossAxisAlignment
-
children.length > 0 && isStack=false 有效;
finalinherited
- decoration → Decoration?
-
finalinherited
- direction → Axis
-
children.length > 0 && isStack=false 有效;
finalinherited
- drawer → Widget?
-
finalinherited
- drawerDragStartBehavior → DragStartBehavior
-
finalinherited
- drawerEdgeDragWidth → double?
-
finalinherited
- drawerEnableOpenDragGesture → bool
-
finalinherited
- drawerScrimColor → Color?
-
finalinherited
- endDrawer → Widget?
-
finalinherited
- endDrawerEnableOpenDragGesture → bool
-
finalinherited
- extendBody → bool
-
finalinherited
- extendBodyBehindAppBar → bool
-
finalinherited
- floatingActionButton → Widget?
-
finalinherited
- floatingActionButtonAnimator → FloatingActionButtonAnimator?
-
finalinherited
- floatingActionButtonLocation → FloatingActionButtonLocation?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isScroll → bool
-
是否添加滚动组件
finalinherited
- isStack → bool
-
children.length > 0有效;
添加 Stack组件
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mainAxisAlignment → MainAxisAlignment
-
children.length > 0 && isStack=false 有效;
finalinherited
- margin → EdgeInsetsGeometry?
-
finalinherited
- onDrawerChanged → DrawerCallback?
-
finalinherited
- onEndDrawerChanged → DrawerCallback?
-
finalinherited
- onWillPop → WillPopCallback?
-
返回按键监听
finalinherited
- onWillPopOverlayClose → bool
-
true 点击android实体返回按键先关闭Overlay【toast loading ...】但不pop 当前页面
false 点击android实体返回按键先关闭Overlay【toast loading ...】并pop 当前页面
finalinherited
- padding → EdgeInsetsGeometry?
-
finalinherited
-
finalinherited
-
finalinherited
- primary → bool
-
finalinherited
- refreshConfig → RefreshConfig?
-
****** 刷新组件相关 ****** ///
finalinherited
- resizeToAvoidBottomInset → bool?
-
finalinherited
- restorationId → String?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeBottom → bool
-
finalinherited
- safeLeft → bool
-
****** SafeArea ****** ///
finalinherited
- safeRight → bool
-
finalinherited
- safeTop → bool
-
finalinherited
- systemOverlayStyle → SystemUiOverlayStyle?
-
在不设置AppBar的时候 修改状态栏颜色
finalinherited
- universal → Universal
-
no setterinherited
- useSingleChildScrollView → bool
-
finalinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
buildAppBar(
BuildContext context) → PreferredSizeWidget? -
inherited
-
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> -
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