CustomScaffold class
Scaffold 脚手架组件
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomScaffold
Constructors
- CustomScaffold.new({Key? key, PreferredSizeWidget? appBar, Widget? body, Widget? floatingActionButton, FloatingActionButtonLocation? floatingActionButtonLocation, FloatingActionButtonAnimator? floatingActionButtonAnimator, Widget? drawer, DrawerCallback? onDrawerChanged, Widget? endDrawer, DrawerCallback? onEndDrawerChanged, Widget? bottomSheet, Color? backgroundColor, bool? resizeToAvoidBottomInset, bool primary = true, DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start, bool? extendBody, bool extendBodyBehindAppBar = false, Color? drawerScrimColor, double? drawerEdgeDragWidth, bool drawerEnableOpenDragGesture = true, bool endDrawerEnableOpenDragGesture = true, String? restorationId, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, bool onTapUnfocus = true, bool showDefaultScrollbar = true})
-
Scaffold 脚手架组件
const
Properties
- appBar → PreferredSizeWidget?
-
应用栏
final
- backgroundColor → Color?
-
背景色
final
- body → Widget?
-
主体内容
final
-
底部导航栏
final
- bottomSheet → Widget?
-
底部工作表
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
-
在 AppBar 后扩展主体区域
final
- floatingActionButton → Widget?
-
浮动操作按钮
final
- floatingActionButtonAnimator → FloatingActionButtonAnimator?
-
浮动操作按钮动画
final
- floatingActionButtonLocation → FloatingActionButtonLocation?
-
浮动操作按钮位置
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry?
-
外边距
final
- onDrawerChanged → DrawerCallback?
-
抽屉状态变化回调
final
- onEndDrawerChanged → DrawerCallback?
-
末端抽屉状态变化回调
final
- onTapUnfocus → bool
-
点击时取消焦点
final
- padding → EdgeInsetsGeometry?
-
内边距
final
-
持久底部按钮对齐方式
final
-
持久底部按钮
final
- primary → bool
-
主要脚手架
final
- resizeToAvoidBottomInset → bool?
-
调整以避免底部插入
final
- restorationId → String?
-
恢复 ID
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDefaultScrollbar → bool
-
显示默认 Scrollbar
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
-
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