ShadResizablePanelGroup constructor
const
ShadResizablePanelGroup({
- Key? key,
- required List<
ShadResizablePanel> children, - Axis axis = Axis.horizontal,
- MainAxisAlignment? mainAxisAlignment,
- CrossAxisAlignment? crossAxisAlignment,
- MainAxisSize? mainAxisSize,
- TextDirection? textDirection,
- VerticalDirection? verticalDirection,
- ShadResizableController? controller,
- bool? showHandle,
- IconData? handleIconData,
- Widget? handleIcon,
- double? dividerSize,
- double? dividerThickness,
- VoidCallback? onDividerDoubleTap,
- bool? resetOnDoubleTap,
- Color? dividerColor,
- ShadDecoration? handleDecoration,
- EdgeInsetsGeometry? handlePadding,
- double? handleSize,
A widget that provides a group of resizable panels, allowing users to adjust the size of each panel dynamically.
The ShadResizablePanelGroup manages multiple ShadResizablePanel widgets and provides functionality to resize them by dragging dividers between them. It supports both horizontal and vertical arrangements of panels, and allows customization of the appearance and behavior of the dividers and handles.
This widget is useful for creating flexible layouts where users can adjust the size of different sections of the UI according to their preferences.
Implementation
const ShadResizablePanelGroup({
super.key,
required this.children,
this.axis = Axis.horizontal,
this.mainAxisAlignment,
this.crossAxisAlignment,
this.mainAxisSize,
this.textDirection,
this.verticalDirection,
this.controller,
this.showHandle,
this.handleIconData,
this.handleIcon,
this.dividerSize,
this.dividerThickness,
this.onDividerDoubleTap,
this.resetOnDoubleTap,
this.dividerColor,
this.handleDecoration,
this.handlePadding,
this.handleSize,
});