BasicScaffold class

Creates a visual scaffold for page.

Inheritance

Constructors

BasicScaffold({Key? key, Widget? body, Widget? drawer, Widget? bottomNavigationBar, String? title, List<Widget>? actions, Widget? floatingActionButton, Color? backgroundColor, bool? enableSearchBar, String? searchBarPlaceHolder, Function? onClear, dynamic onSubmitted(String)?, bool enableAppBar = true, List<Widget>? tabs, List<Widget>? tabBarViews, BasicAppBarTheme? appBarTheme})
const

Properties

actions List<Widget>?
A list of Widgets to display in a row after the title.
final
appBarTheme BasicAppBarTheme?
App bar theme.
final
backgroundColor Color?
body background color.
final
body Widget?
The primary content of the scaffold.
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
enableAppBar bool
Set this to true to enable app bar.
final
enableSearchBar bool?
Set this to true to make app bar title display search bar.
final
floatingActionButton Widget?
A button displayed floating above body, in the bottom right corner.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onClear Function?
The callback that is called when the clear button is tapped.
final
onSubmitted → (dynamic Function(String)?)
The callback when search query submitted.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBarPlaceHolder String?
Search bar placeholder
final
tabBarViews List<Widget>?
Creates a page view with one child per tab.
final
tabs List<Widget>?
The Widgets to display in tab bar,
final
title String?
Display title to the app bar.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() → _StatelessHookElement
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}) 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