MyScaffold class

Inheritance

Constructors

MyScaffold.center({Key? kye, required String? title, ChildBuild<Widget>? appBar, required ChildBuild<Widget> body, ChildBuild<List<Widget>>? actions, ChildBuild<Widget>? drawer, bool drawerIsLeft = true, bool titleIsCenter = true, bool isMaterial = true, bool isShowTitle = true, SafePadding? isSafeArea, Color? bgColor, Color? titleBackgroundColor, bool isBottom = false, ChildBuild<Widget>? bottom, ChildBuild<Widget>? titleWidget, Widget? stateWidget, ChildBuild<Widget>? nextWidget, Brightness? brightness, Brightness? appBarBrightness, ThemeData? themeData, Color? defaultTextColor})
const
MyScaffold.immerse({Key? kye, ChildBuild<Widget>? appBar, String? title, required ChildBuild<Widget> body, ChildBuild<Widget>? backgroundWidget, ChildBuild<List<Widget>>? actions, ChildBuild<Widget>? drawer, bool drawerIsLeft = true, bool titleIsCenter = true, bool isMaterial = true, bool isShowTitle = true, SafePadding? isSafeArea, Color? bgColor, Color? titleBackgroundColor, bool isBottom = false, ChildBuild<Widget>? bottom, ChildBuild<Widget>? titleWidget, Widget? stateWidget, ChildBuild<Widget>? nextWidget, Brightness? brightness, Brightness? appBarBrightness, ThemeData? themeData, Color? defaultTextColor})
沉浸式
const
MyScaffold.normal({Key? kye, ChildBuild<Widget>? appBar, required ChildBuild<Widget> body, ChildBuild<List<Widget>>? actions, String? title, ChildBuild<Widget>? drawer, bool drawerIsLeft = true, bool titleIsCenter = false, bool isMaterial = true, bool isShowTitle = true, bool isBottom = false, SafePadding? isSafeArea, Color? bgColor, Color? titleBackgroundColor, ChildBuild<Widget>? bottom, ChildBuild<Widget>? titleWidget, Widget? stateWidget, ChildBuild<Widget>? nextWidget, Brightness? brightness, Brightness? appBarBrightness, ThemeData? themeData, Color? defaultTextColor})
const

Properties

actions ChildBuild<List<Widget>>?
final
appBar ChildBuild<Widget>?
final
appBarBrightness Brightness?
如果单独设置标题栏则使用 否则使用brightness设置全局
final
backgroundWidget ChildBuild<Widget>?
final
bgColor Color?
final
body ChildBuild<Widget>
final
bottom ChildBuild<Widget>?
final
brightness Brightness?
全局主题配置
final
defaultTextColor Color?
final
drawer ChildBuild<Widget>?
final
drawerIsLeft bool
final
hashCode int
The hash code for this object.
no setterinherited
immerse bool
final
isBottom bool
final
isMaterial bool
final
isSafeArea SafePadding?
final
isShowTitle bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
nextWidget ChildBuild<Widget>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateWidget Widget?
状态页面 显示当前页面加载状态 优先度最高
final
themeData ThemeData?
final
title String?
final
titleBackgroundColor Color?
final
titleIsCenter bool
final
titleWidget ChildBuild<Widget>?
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}) 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

Static Methods

setTitle(String title, {BuildContext? context}) → void