Skip to Content
Forui 0.17.0 is released 🎉

Resizable

A box which children can be resized along either the horizontal or vertical axis.

CLI

To generate and customize this style:

dart run forui style create resizable

Usage

FResizable(...)

FResizable( control: FResizableControl.managedCascade( onResizeUpdate: (regions) {}, onResizeEnd: (regions) {}, ), style: (style) => style.copyWith(...), axis: Axis.vertical, divider: FResizableDivider.dividerWithThumb, crossAxisExtent: 400, hitRegionExtent: 10, resizePercentage: 0.005, semanticFormatterCallback: (left, right) => '${left.extent.current}, ${right.extent.current}', children: [ FResizableRegion( initialExtent: 200, minExtent: 100, builder: (context, data, child) => child!, child: const Placeholder(), ), ], );

Examples

Without Cascading

Horizontal

Divider with No Thumb

Without Divider

Last updated on