DesignSplitView class

first and second side by side (or stacked, axis vertical), split at fraction of the room (the first pane's share).

DesignSplitView(first: const SizedBox(), second: const SizedBox(), dividerBuilder: (context, states, axis) => const ColoredBox(color: Color(0xFFDDDDDD)))
Inheritance

Constructors

DesignSplitView({Key? key, required Widget first, required Widget second, required DesignDividerBuilder dividerBuilder, Axis axis = Axis.horizontal, double? fraction, double initialFraction = 0.5, ValueChanged<double>? onChanged, double minFirst = 0, double minSecond = 0, double dividerThickness = 1, double hitExtent = 12, double step = 0.02, String? semanticLabel, FocusNode? focusNode, bool autofocus = false})
A split of first and second.
const

Properties

autofocus → bool
Whether the divider takes focus when it first appears.
final
axis → Axis
Side by side (Axis.horizontal) or stacked.
final
dividerBuilder → DesignDividerBuilder
Paints the divider (its dividerThickness across the run).
final
dividerThickness → double
The divider's thickness in the layout.
final
first → Widget
The first pane (the start side, or the top).
final
focusNode → FocusNode?
The divider's focus.
final
fraction → double?
The first pane's share, when the app holds it; null: the view holds it, from initialFraction.
final
hashCode → int
The hash code for this object.
no setterinherited
hitExtent → double
The divider's pointer target across the run (over both panes' edges).
final
initialFraction → double
Where a view that holds its own share starts.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minFirst → double
The first pane's least size.
final
minSecond → double
The second pane's least size.
final
onChanged → ValueChanged<double>?
A drag's, a key's or a screen reader's new share.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
second → Widget
The second pane.
final
semanticLabel → String?
What a screen reader calls the divider; null: DesignLocalizations.splitViewHandleLabel.
final
step → double
An arrow's change in share.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<DesignSplitView>
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.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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

Operators

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