ResponsiveScaffold class Null safety

Inheritance

Constructors

ResponsiveScaffold({Key? key, PreferredSizeWidget? appBar, Widget? body, double? bodyMaxWidth, Widget? bottomNavigationBar, Widget? drawer, Widget? floatingActionButton, FloatingActionButtonLocation? floatingActionButtonLocation, DrawerCallback? onDrawerChanged, List<Widget>? persistentFooterButtons, Widget? sidebar})
const

Properties

appBar PreferredSizeWidget?
An app bar to display at the top of the scaffold.
final
body Widget?
The primary content of the scaffold.
final
bodyMaxWidth double?
Controls the maximum width of the body content.
final
bottomNavigationBar Widget?
A bottom navigation bar to display at the bottom of the scaffold.
final
drawer Widget?
A panel displayed to the side of the body, often hidden on mobile devices. Swipes in from either left-to-right (TextDirection.ltr) or right-to-left (TextDirection.rtl)
final
floatingActionButton Widget?
A button displayed floating above body, in the bottom right corner.
final
floatingActionButtonLocation FloatingActionButtonLocation?
Responsible for determining where the floatingActionButton should go.
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDrawerChanged DrawerCallback?
Optional callback that is called when the Scaffold.drawer is opened or closed.
final
persistentFooterButtons List<Widget>?
A set of buttons that are displayed at the bottom of the scaffold.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
Add left sidebar in the scaffold, only work if drawer is null.
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.
@protectedinherited
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

Operators

operator ==(Object other) bool
The equality operator.
@nonVirtualinherited