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.
CupertinoPageScaffold: 2021.03.12 Scaffold: 2021.04.03 modify 2021.06.25 by flutter 2.2.2
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BaseStatelessWidget
- BaseScaffold
Constructors
- BaseScaffold({Key? key, BaseAppBar? appBar, Color? backgroundColor, Widget? body, bool resizeToAvoidBottomInset = true, bool safeAreaTop = false, bool safeAreaBottom = false, Widget? floatingActionButton, FloatingActionButtonLocation? floatingActionButtonLocation, FloatingActionButtonAnimator? floatingActionButtonAnimator, Widget? drawer, Widget? endDrawer, Widget? bottomSheet, bool primary = true, DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start, bool extendBody = false, bool? extendBodyBehindAppBar, bool autoSafeArea = true, Color? drawerScrimColor, double? drawerEdgeDragWidth, bool drawerEnableOpenDragGesture = true, bool endDrawerEnableOpenDragGesture = true, DrawerCallback? onDrawerChanged, DrawerCallback? onEndDrawerChanged, String? restorationId, BaseParam? baseParam})
-
const
Properties
- appBar → BaseAppBar?
-
*** general properties start ***
CupertinoPageScaffold.navigationBar
or
Scaffold.appBar
If this properties is null, then navBar is use.
final
- autoSafeArea → bool
-
Automatically wrap body with SafeArea when app bar is transparent
Default is true for intelligent spacing management
final
- backgroundColor → Color?
-
CupertinoPageScaffold.backgroundColor
or
Scaffold.backgroundColor
final
- baseParam → BaseParam?
-
Personalization parameters, gets platform parameters first, then mode parameters
finalinherited
- body → Widget?
-
CupertinoPageScaffold.bodyor Scaffold.bodyfinal -
Scaffold.bottomNavigationBar
final
- bottomSheet → Widget?
-
Scaffold.bottomSheet
final
- drawer → Widget?
-
Scaffold.drawer
final
- drawerDragStartBehavior → DragStartBehavior
-
Scaffold.drawerDragStartBehavior
final
- drawerEdgeDragWidth → double?
-
Scaffold.drawerEdgeDragWidth
final
- drawerEnableOpenDragGesture → bool
-
Scaffold.drawerEnableOpenDragGesture
final
- drawerScrimColor → Color?
-
Scaffold.drawerScrimColor
final
- endDrawer → Widget?
-
Scaffold.endDrawer
final
- endDrawerEnableOpenDragGesture → bool
-
Scaffold.endDrawerEnableOpenDragGesture
final
- extendBody → bool
-
Scaffold.extendBody
final
- extendBodyBehindAppBar → bool?
-
Scaffold.extendBodyBehindAppBar
When null, automatically determined based on app bar transparency
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.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
CupertinoPageScaffold.navigationBar
or
Scaffold.appBar
final
- onDrawerChanged → DrawerCallback?
-
Scaffold.onDrawerChanged
final
- onEndDrawerChanged → DrawerCallback?
-
Scaffold.onEndDrawerChanged
final
-
Scaffold.persistentFooterButtons
final
- primary → bool
-
Scaffold.primary
final
- resizeToAvoidBottomInset → bool
-
CupertinoPageScaffold.resizeToAvoidBottomInset
or
Scaffold.resizeToAvoidBottomInset
final
- restorationId → String?
-
Scaffold.restorationId
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeAreaBottom → bool
-
SafeArea.bottom, default is false
Equivalent to SafeArea's bottom, defaults to false
Set to true to prevent the page from being covered by the iPhone's Home Indicator at the bottom
final
- safeAreaTop → bool
-
*** general properties end ***
*** cupertino properties start ***
SafeArea.top, default is false
Equivalent to SafeArea's top, defaults to false
When the navigation bar background is transparent, set to true to make the page start below the navigation bar
final
Methods
-
beforeBuild(
BuildContext context) → void -
Called before build
inherited
-
beforeBuildByCupertino(
BuildContext context) → void -
Called before buildByCupertino
inherited
-
beforeBuildByCupertinoNative(
BuildContext context) → void -
Called before buildByCupertinoNative (native iOS implementation)
inherited
-
beforeBuildByMaterial(
BuildContext context) → void -
Called before buildByMaterial
inherited
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
buildByCupertino(
BuildContext context) → Widget - build on cupertino mode (Flutter implementation)
-
buildByCupertinoNative(
BuildContext context) → Widget - build on cupertino mode with native iOS components (cupertino_native package) This is called when baseParam.nativeIOS = true Default implementation falls back to buildByCupertino()
-
buildByMaterial(
BuildContext context) → Widget - build on material mode
-
commonBuild(
BuildContext context, BaseParam? baseParam) → dynamic -
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
-
getBuildMode(
BaseParam? baseParam) → WidgetBuildMode -
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
-
valueOf(
String key, dynamic value) → dynamic -
inherited
-
valueOfBaseParam(
BaseParam? baseParam, String key, dynamic value) → dynamic -
No reflection available in Dart
First get value from platform, then from mode, finally from value itself
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited