CustomScaffold class

This is the custom scaffold

Inheritance

Constructors

CustomScaffold({PreferredSizeWidget? appBar, GlobalKey<ScaffoldState>? scaffoldKey, Widget? body, Widget? endDrawer, Widget? drawer, FloatingActionButtonLocation? floatingActionButtonLocation, Widget? bottomNavigationBar, Widget? floatingActionButton, List<Widget>? persistentFooterButtons, Color? backgroundColor = Colors.white, bool extendBody = false, bool isUnKeyboard = true, bool resizeToAvoidBottomInset = true, bool useSafeArea = true, int? imageIndex, Key? key})
A custom scaffold widget that provides a common structure for app screens.
const

Properties

appBar PreferredSizeWidget?
See Scaffold.appBar.
final
backgroundColor Color?
See Scaffold.backgroundColor.
final
body Widget?
See Scaffold.body.
final
bottomNavigationBar Widget?
See Scaffold.bottomNavigationBar.
final
drawer Widget?
See Scaffold.drawer.
final
endDrawer Widget?
See Scaffold.endDrawer.
final
extendBody bool
See Scaffold.extendBody.
final
floatingActionButton Widget?
See Scaffold.floatingActionButton.
final
floatingActionButtonLocation FloatingActionButtonLocation?
See Scaffold.floatingActionButtonLocation.
final
hashCode int
The hash code for this object.
no setterinherited
imageIndex int?
The index of the background image to use. (Currently unused in the provided code).
final
isUnKeyboard bool
Whether to unfocus the keyboard when tapping on the scaffold.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
persistentFooterButtons List<Widget>?
See Scaffold.persistentFooterButtons.
final
resizeToAvoidBottomInset bool
See Scaffold.resizeToAvoidBottomInset.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffoldKey GlobalKey<ScaffoldState>?
See Scaffold.key.
final
useSafeArea bool
Whether to wrap the body with a SafeArea.
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, 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

Operators

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