Juxtapose class

A widget for comparing two stacked widgets by dragging a slider thumb to reveal either sides of the slider.

Sliding direction can be Axis.horizontal or Axis.vertical.

Inheritance

Constructors

Juxtapose({Key? key, required Widget backgroundWidget, required Widget foregroundWidget, Color dividerColor = Colors.white, Color thumbColor = Colors.white, double dividerThickness = 3, Size thumbSize = const Size(12, 100), Axis direction = Axis.horizontal, double? height, double? width, BorderRadius? thumbBorderRadius, bool showArrows = false, Color backgroundColor = Colors.transparent})
Creates a Juxtapose widget.

Properties

backgroundColor Color
Background color of the Juxtapose box. Defaults to Colors.white.
final
backgroundWidget Widget
The background widget is displayed behind the foregroundWidget.
final
direction Axis
Sliding direction for juxtaposing between the two widgets.
final
dividerColor Color
The color of the horizontal/vertical divider between the two frames/widgets.
final
dividerThickness double
The line thickness of the horizontal/vertical divider between the two frames/widgets.
final
foregroundWidget Widget
The foreground widget is displayed in front of the backgroundWidget.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Height of the Juxtapose box.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showArrows bool
Indicates whether the arrows on the sides of the thumb are shown or not.
final
thumbBorderRadius BorderRadius?
Sets the BorderRadius of the thumb widget.
final
thumbColor Color
Color of the thumb that is dragged to juxtapose.
final
thumbSize Size
Size width is the shortest side.
final
width double?
Width of the Juxtapose box.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _JuxtaposeState
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
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}) 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