ResizablePanel constructor

const ResizablePanel({
  1. Key? key,
  2. required Axis direction,
  3. required List<ResizablePane> children,
  4. OptionalWidgetBuilder? dividerBuilder = defaultDividerBuilder,
  5. OptionalWidgetBuilder? draggerBuilder,
  6. double? draggerThickness,
  7. 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 arranged
  • children (List
  • dividerBuilder (OptionalWidgetBuilder?, optional): Custom divider builder
  • draggerBuilder (OptionalWidgetBuilder?, optional): Custom dragger builder
  • draggerThickness (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,
});