GroundedBottomWrapper class

A wrapper widget that provides a themed layout for bottom UI components.

The GroundedBottomWrapper is designed to wrap the bottom sections of the image editor, applying a given theme or falling back to a dark theme if none is provided. It uses a LayoutBuilder to build its child widgets based on the available constraints.

Parameters:

  • theme - The ThemeData to apply to the child widgets. If null, a dark theme is used by default.
  • children - A function that returns a list of widgets based on the constraints of the layout.

Example:

GroundedBottomWrapper(
  theme: ThemeData.light(),
  children: (constraints) => [
    Widget1(),
    Widget2(),
  ],
)

The children are built dynamically using the provided BoxConstraints, allowing for flexible layout adjustments.

See also:

  • LayoutBuilder - Used to access the constraints for building the children.
  • Theme - Provides the themed data to the child widgets.
Inheritance

Constructors

GroundedBottomWrapper({Key? key, required ThemeData? theme, required List<Widget> children(BoxConstraints constraints)})
Constructor for the GroundedBottomWrapper.
const

Properties

children List<Widget> Function(BoxConstraints constraints)
A function that returns the list of widgets to display, based on BoxConstraints.
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
theme ThemeData?
The theme to apply to the child widgets.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<GroundedBottomWrapper>
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