MinimalReveal class

The arrival and departure of a row or a block inside a Column or a list: its extent grows from nothing while it fades in, and on the way out it fades while its neighbours close over it — MinimalMotion.base (120 ms) on MinimalMotion.out, no bounce, no scale.

A list that swaps its children in one frame makes the reader re-find their place; the extent has to MOVE. The leaving child is kept for the length of the collapse (silent and untappable), then replaced by a zero-extent box — not laid out, not hit-tested, costing nothing while it is away. That is the difference between this and an Opacity: an invisible row that still eats taps is a bug the page cannot see. The child keeps its element (and its state) through a reversal mid-move, and it is clipped only while it moves, so a settled child's focus ring still paints outside its edge. Under Reduce Motion (Android's, iOS's or the web's), or with MinimalMotion.animate off, it switches at once. Inside a MinimalListSection it is a row like any other: the group draws no rule for it while it is folded away.

MinimalReveal(visible: showNote, child: MinimalListTile(title: 'Note'))
Inheritance

Constructors

MinimalReveal({Key? key, required bool visible, required Widget child, Axis axis = Axis.vertical})
Shows child while visible, growing in and folding away.
const

Properties

axis → Axis
Which extent collapses: vertical anchors the child to the top (a row in a column), horizontal to the leading edge (a tag in a row).
final
child → Widget
What it shows.
final
hashCode → int
The hash code for this object.
no setterinherited
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
visible → bool
Whether the child is shown.
final

Methods

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