ScaffoldConfig class

Constructors

ScaffoldConfig({Key? key, bool extendBodyBehindAppBar = false, PreferredSizeWidget? mobileAppBar, PersistentWidget? persistentWidget, Widget? floatingActionButton, FloatingActionButtonLocation? floatingActionButtonLocation, FloatingActionButtonAnimator? floatingActionButtonAnimator, List<Widget>? persistentFooterButtons, Widget? endDrawer, Color? drawerScrimColor, Color? backgroundColor, Widget? bottomSheet, bool? resizeToAvoidBottomInset, bool primary = true, DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start, double? drawerEdgeDragWidth, bool drawerEnableOpenDragGesture = true, bool endDrawerEnableOpenDragGesture = true, EdgeInsets pagePadding = EdgeInsets.zero})
Curtain main page scaffold config.

Properties

backgroundColor Color?
The color of the Material widget that underlies the entire Scaffold.
final
bottomSheet Widget?
The persistent bottom sheet to display.
final
drawerDragStartBehavior DragStartBehavior
Determines the way that drag start behavior is handled.
final
drawerEdgeDragWidth double?
The width of the area within which a horizontal swipe will open the drawer.
final
drawerEnableOpenDragGesture bool
Determines if the Scaffold.drawer can be opened with a drag gesture.
final
drawerScrimColor Color?
The color to use for the scrim that obscures primary content while a drawer is open.
final
endDrawer Widget?
A panel displayed to the side of the body, often hidden on mobile devices. Swipes in from right-to-left (TextDirection.ltr) or left-to-right (TextDirection.rtl)
final
endDrawerEnableOpenDragGesture bool
Determines if the Scaffold.endDrawer can be opened with a drag gesture.
final
extendBodyBehindAppBar bool
If true, and an mobileAppBar is specified, then the height of the body is extended to include the height of the app bar and the top of the body is aligned with the top of the app bar.
final
floatingActionButton Widget?
A button displayed floating above body, in the bottom right corner.
final
floatingActionButtonAnimator FloatingActionButtonAnimator?
Animator to move the floatingActionButton to a new floatingActionButtonLocation.
final
floatingActionButtonLocation FloatingActionButtonLocation?
Responsible for determining where the floatingActionButton should go.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
final
mobileAppBar PreferredSizeWidget?
An app bar to display at the top of the scaffold only on tablet and mobile.
final
pagePadding EdgeInsets
Empty space around the pages.
final
persistentFooterButtons List<Widget>?
A set of buttons that are displayed at the bottom of the scaffold.
final
persistentWidget PersistentWidget?
Widget which always displayed in all pages.
final
primary bool
Whether this scaffold is being displayed at the top of the screen.
final
resizeToAvoidBottomInset bool?
If true the body and the scaffold's floating widgets should size themselves to avoid the onscreen keyboard whose height is defined by the ambient MediaQuery's MediaQueryData.viewInsets bottom property.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited