ResizablePanel.horizontal constructor
const
ResizablePanel.horizontal({
- Key? key,
- required List<
ResizablePane> children, - OptionalWidgetBuilder? dividerBuilder = defaultDividerBuilder,
- OptionalWidgetBuilder? draggerBuilder,
- double? draggerThickness,
- 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(ListdividerBuilder(OptionalWidgetBuilder?, optional): Custom divider builderdraggerBuilder(OptionalWidgetBuilder?, optional): Custom dragger builderdraggerThickness(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;