BaseScaffold class

BaseScaffold use CupertinoPageScaffold by cupertino, tab's scaffold use CupertinoTabScaffold *** use cupertino = { forceUseMaterial: true } force use Scaffold on cuperitno. use Scaffold by material *** use material = { forceUseCupertino: true } force use CupertinoPageScaffold/CupertinoTabScaffold on material.

Inheritance

Constructors

BaseScaffold({Key baseKey, Key key, BaseAppBar appBar, BaseAppBar navBar, Color backgroundColor, Widget body, bool resizeToAvoidBottomInset = true, bool safeAreaTop = false, bool safeAreaBottom = false, Widget floatingActionButton, FloatingActionButtonLocation floatingActionButtonLocation, FloatingActionButtonAnimator floatingActionButtonAnimator, List<Widget> persistentFooterButtons, Widget drawer, Widget endDrawer, Widget bottomNavigationBar, Widget bottomSheet, bool primary = true, DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start, bool extendBody = false, bool extendBodyBehindAppBar = false, Color drawerScrimColor, double drawerEdgeDragWidth, Map<String, dynamic> cupertino, Map<String, dynamic> material})
const

Properties

appBar BaseAppBar
CupertinoPageScaffold.navigationBar or Scaffold.appBar If this properties is null, then navBar is use. [...]
final
backgroundColor Color
CupertinoPageScaffold.backgroundColor or Scaffold.backgroundColor
final
body Widget
CupertinoPageScaffold.body or Scaffold.body
final
bottomNavigationBar Widget
Scaffold.bottomNavigationBar
final
bottomSheet Widget
Scaffold.bottomSheet
final
cupertino Map<String, dynamic>
final, inherited
drawer Widget
Scaffold.drawer
final
drawerDragStartBehavior DragStartBehavior
Scaffold.drawerDragStartBehavior
final
drawerEdgeDragWidth double
Scaffold.drawerEdgeDragWidth
final
drawerScrimColor Color
Scaffold.drawerScrimColor
final
endDrawer Widget
Scaffold.endDrawer
final
extendBody bool
Scaffold.extendBody
final
extendBodyBehindAppBar bool
Scaffold.extendBodyBehindAppBar
final
floatingActionButton Widget
*** cupertino properties end *** *** material properties start *** Scaffold.floatingActionButton
final
floatingActionButtonAnimator FloatingActionButtonAnimator
Scaffold.floatingActionButtonAnimator
final
floatingActionButtonLocation FloatingActionButtonLocation
Scaffold.floatingActionButtonLocation
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key
*** general properties start ***
final
material Map<String, dynamic>
final, inherited
CupertinoPageScaffold.navigationBar or Scaffold.appBar [...]
final
persistentFooterButtons List<Widget>
Scaffold.persistentFooterButtons
final
primary bool
Scaffold.primary
final
resizeToAvoidBottomInset bool
CupertinoPageScaffold.resizeToAvoidBottomInset or Scaffold.resizeToAvoidBottomInset
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
safeAreaBottom bool
SafeArea.bottom, default is false 相当于SafeArea的bottom,默认false 设置为true可以避免页面被iphone下方的Home Indicator遮住
final
safeAreaTop bool
*** general properties end *** *** cupertino properties start *** SafeArea.top, default is false 相当于SafeArea的top,默认false 当导航栏背景色为透明的,设置为true可以使页面起点在导航栏下方
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
inherited
buildBefore(BuildContext context) → void
build之前调用
inherited
buildByCupertino(BuildContext context) Widget
*** material properties end ***
override
buildByCupertinoBefore(BuildContext context) → void
buildByCupertino之前调用
inherited
buildByMaterial(BuildContext context) Widget
build on material mode
override
buildByMaterialBefore(BuildContext context) → void
buildByMaterial之前调用
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
valueFromCupertino(String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMap(Map<String, dynamic> map, String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMaterial(String key, dynamic value) → dynamic
从material获取key对应的值, 如果为null取value的值, 如果还是null则取cupertino里的值
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited