FResizable class
A resizable allows its children to be resized along either the horizontal or vertical main axis.
Each child is a FResizableRegion has a initial and minimum extent. Setting an initial extent less than the minimum extent will result in undefined behaviour. The children are arranged from top to bottom, or left to right, depending on the main axis.
It is recommended that a FResizable contains at least 2 FResizableRegions.
See:
- https://forui.dev/docs/layout/resizable for working examples.
- FResizableStyle for customizing a resizable's appearance.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FResizable
Constructors
-
FResizable({required Axis axis, required List<
FResizableRegion> children, FResizableStyle? style, FResizableDivider divider = FResizableDivider.dividerWithThumb, double? crossAxisExtent, double resizePercentage = 0.005, String semanticFormatterCallback(FResizableRegionData, FResizableRegionData) = _label, FResizableController? controller, double? hitRegionExtent, Key? key}) - Creates a FResizable.
Properties
- axis → Axis
-
The main axis along which the children can be resized.
final
-
children
→ List<
FResizableRegion> -
The children that may be resized.
final
- controller → FResizableController
-
The controller that manages the resizing of regions. Defaults to FResizableController.cascade.
final
- crossAxisExtent → double?
-
The extent of the children along the non-resizable axis, in logical pixels. By default, it occupies as much
space as possible.
final
- divider → FResizableDivider
-
The divider between resizable regions. Defaults to FResizableDivider.dividerWithThumb.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hitRegionExtent → double
-
The extent of the gesture's hit region along the resizable axis, in logical pixels.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- resizePercentage → double
-
The percentage of the total extent by which regions are resized when using the keyboard. Defaults to 0.005 (0.5%).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticFormatterCallback → String Function(FResizableRegionData, FResizableRegionData)
-
A callback that formats the semantic label for the resizable. Defaults to announcing the extents of both regions.
final
- style → FResizableStyle?
-
The resizable' style.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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.
override
-
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