BarsTransition class final

A venetian-blind reveal: count parallel bars along direction each run the same wipe simultaneously.

(For a true content slide, use Flutter's built-in SlideTransition — a slide moves the child, which an alpha-mask transition can't express. For a corner wipe, use WipeTransition with a diagonal SweepDirection.)

const BarsTransition(count: 8, direction: SweepDirection.topToBottom)
Inheritance

Constructors

BarsTransition({int count = 6, double softness = 4.0, SweepDirection direction = SweepDirection.leftToRight, Duration duration = const Duration(milliseconds: 600), TransitionCover? cover, bool invert = false})
Creates a venetian-blind transition.
const

Properties

count → int
Number of parallel bars. Clamped to ≥ 1 (1 ≈ a plain wipe).
final
cover → TransitionCover?
Optional flat-color cover for a cinematic fade-through transition. null (default) lets the outgoing page show through — a classic mask reveal.
finalinherited
direction → SweepDirection
Axis the bars wipe along.
final
duration → Duration
Total animation time, used unchanged for both push and pop.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
invert → bool
Reverses the reveal direction of the effect. For CircleTransition this turns the expanding iris into a contracting one; for directional transitions it flips which side reveals first.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shaderKey → String
The ShaderRegistry key (and .frag basename) backing this transition.
no setteroverride
softness → double
Edge softness of each bar, in logical pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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