LitScaffold class
Widget used to overlay multiple functinal Widgets to ensure no unintended overlapping will occur.
The default Scaffold will be used as foundation which will be extended by the custom widgets. By passing on the arguments, the corresponding Widgets will be played into a Stack.
The layer will be dependend on the Widget's usecase. E.g. a LitSnackbar will always be displayed on top of a CustomAppBar.
The body is adjusted to fit the CustomAppBar using a top padding, if it is provided and it if is not the LitBlurredAppBar.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- LitScaffold
Constructors
-
LitScaffold({Key? key, Color backgroundColor = Colors.white, required Widget body, List<
LitSnackbar> snackbars = const [], CustomAppBar? appBar, CustomActionButton? actionButton, CollapsibleCard? collapsibleCard, LitSettingsPanel? settingsPanel, bool wrapInSafeArea = true}) -
Creates a LitScaffold Widget.
const
Properties
- actionButton → CustomActionButton?
-
final
- appBar → CustomAppBar?
-
The CustomAppBar displays additional information.
final
- backgroundColor → Color
-
The Color of the background.
final
- body → Widget
-
The main Widget to be displayed on the LitScaffold.
final
- collapsibleCard → CollapsibleCard?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settingsPanel → LitSettingsPanel?
-
final
-
snackbars
→ List<
LitSnackbar> -
The LitSnackbars are displaying changes triggered by the user. The
snackbars are stacked on top of each other. To avoid stacked snackbars,
you could use the LitNotificationContainer.
final
- wrapInSafeArea → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _LitScaffoldState -
Creates the mutable state for this widget at a given location in the tree.
override
-
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