TSplitPane class

A responsive, draggable resizable two-pane container for admin consoles, master-detail views, side-by-side comparisons, and IDE layouts.

Inheritance
Available extensions

Constructors

TSplitPane({Key? key, required Widget leading, required Widget trailing, Axis axis = Axis.horizontal, TSplitPaneController? controller, double initialRatio = 0.5, double? initialExtent, double minLeadingExtent = 80.0, double? maxLeadingExtent, double minTrailingExtent = 80.0, double? maxTrailingExtent, double dividerThickness = 8.0, bool showGrip = true, bool showCollapseButtons = false, bool collapsibleLeading = false, bool collapsibleTrailing = false, double collapseSnapThreshold = 40.0, ValueChanged<double>? onResized, VoidCallback? onReset})
const

Properties

axis → Axis
Split orientation: Axis.horizontal for left/right panes, Axis.vertical for top/bottom panes.
final
collapseSnapThreshold → double
Distance threshold in pixels from edge to snap pane to collapsed. Defaults to 40.0.
final
collapsibleLeading → bool
Whether dragging past collapseSnapThreshold allows snapping the leading pane to collapsed (0px). Defaults to false.
final
collapsibleTrailing → bool
Whether dragging past collapseSnapThreshold allows snapping the trailing pane to collapsed (0px). Defaults to false.
final
controller → TSplitPaneController?
Optional external controller for programmatically resizing or collapsing panes.
final
dividerThickness → double
Thickness of the interactive divider bar in pixels. Defaults to 8.0.
final
hashCode → int
The hash code for this object.
no setterinherited
initialExtent → double?
Initial pixel extent for the leading pane. If provided, overrides initialRatio.
final
initialRatio → double
Initial ratio for the leading pane (between 0.0 and 1.0). Defaults to 0.5.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading → Widget
The leading (left or top) widget pane.
final
maxLeadingExtent → double?
Maximum allowed pixel extent for the leading pane. If null, unbounded up to trailing minimum.
final
maxTrailingExtent → double?
Maximum allowed pixel extent for the trailing pane. If null, unbounded.
final
minLeadingExtent → double
Minimum allowed pixel extent for the leading pane. Defaults to 80.0.
final
minTrailingExtent → double
Minimum allowed pixel extent for the trailing pane. Defaults to 80.0.
final
onReset → VoidCallback?
Callback fired when the divider is double-clicked to reset.
final
onResized → ValueChanged<double>?
Callback fired whenever the split ratio changes due to user dragging or controller updates.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showCollapseButtons → bool
Whether to render quick collapse/expand buttons on the divider handle. Defaults to false.
final
showGrip → bool
Whether to render a visual grip indicator in the center of the divider handle. Defaults to true.
final
trailing → Widget
The trailing (right or bottom) widget pane.
final

Methods

box({double minW = 0.0, double minH = 0.0, double maxW = double.infinity, double maxH = double.infinity}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a ConstrainedBox to apply layout constraints.
center({bool when = true}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a Center widget.
createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<TSplitPane>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
expanded({int flex = 1}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in an Expanded widget.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
padding([double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0]) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a Padding with flexible edge control.
paddingSymmetric({double h = 0.0, double v = 0.0}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a Padding with symmetric horizontal and vertical spacing.
size({double? w, double? h}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a SizedBox to apply fixed width and/or height.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited
visible(bool visible, {bool maintainState = false}) → Widget

Available on Widget, provided by the WidgetX extension

Wraps this widget in a Visibility widget.
when(bool condition) → Widget

Available on Widget, provided by the WidgetX extension

Returns this widget if condition is true, otherwise returns SizedBox.shrink(). Usage: Text('Hello').when(isVisible)

Operators

operator ==(Object other) → bool
The equality operator.
inherited