ResizablePanel.horizontal constructor

const ResizablePanel.horizontal({
  1. Key? key,
  2. required List<ResizablePane> children,
  3. OptionalWidgetBuilder? dividerBuilder = defaultDividerBuilder,
  4. OptionalWidgetBuilder? draggerBuilder,
  5. double? draggerThickness,
  6. bool optionalDivider = false,
})

Creates a horizontal resizable panel with panes arranged left-to-right.

This is a convenience constructor that sets direction to Axis.horizontal and provides default builders for dividers and draggers appropriate for horizontal layouts.

Parameters:

  • 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.horizontal(
  children: [
    ResizablePane(child: LeftSidebar(), defaultSize: 200),
    ResizablePane(child: MainContent(), flex: 1),
    ResizablePane(child: RightPanel(), defaultSize: 150),
  ],
);

Implementation

const ResizablePanel.horizontal({
  super.key,
  required this.children,
  this.dividerBuilder = defaultDividerBuilder,
  this.draggerBuilder,
  this.draggerThickness,
  this.optionalDivider = false,
}) : direction = Axis.horizontal;