ResizablePanel constructor
const
ResizablePanel({
- Key? key,
- required Axis direction,
- required List<
ResizablePane> children, - OptionalWidgetBuilder? dividerBuilder = defaultDividerBuilder,
- OptionalWidgetBuilder? draggerBuilder,
- double? draggerThickness,
- bool optionalDivider = false,
Creates a resizable panel with the specified direction and configuration.
This is the general constructor that allows full customization of the panel orientation and behavior. Use the convenience constructors ResizablePanel.horizontal and ResizablePanel.vertical for typical use cases.
Parameters:
direction(Axis, required): The axis along which panes are arrangedchildren(ListdividerBuilder(OptionalWidgetBuilder?, optional): Custom divider builderdraggerBuilder(OptionalWidgetBuilder?, optional): Custom dragger builderdraggerThickness(double?, optional): Size of the draggable resize area
Example:
ResizablePanel(
direction: Axis.horizontal,
draggerThickness: 8.0,
children: [...],
draggerBuilder: (context) => CustomDragger(),
);
Implementation
const ResizablePanel({
super.key,
required this.direction,
required this.children,
this.dividerBuilder = defaultDividerBuilder,
this.draggerBuilder,
this.draggerThickness,
this.optionalDivider = false,
});