CircularClipTransition class
A widget which reveals its child by expanding a circular clip from the center of expandingRect until the child is fully revealed.
expandingRect is a rectangle in the coordinate space of this widget, which
contains the clip circle when animation.value
is 0
.
When animation.value
is 1
, the clip circle contains both
expandingRect and the rectangle which is the bounding box of child.
See also:
- CircularClipRoute, which uses this widget.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CircularClipTransition
Constructors
-
CircularClipTransition({Key? key, required Animation<
double> animation, required Rect expandingRect, required Widget child, Animatable<double> ? opacity, BoxBorder? border = kDefaultBorder, List<BoxShadow> ? shadow = kDefaultShadow}) - Creates widget which reveals its child by expanding a circular clip from the center of expandingRect until the child is fully revealed.
Properties
-
animation
→ Animation<
double> -
The animation which controls the progress (0 to 1) of the transition.
final
- border → BoxBorder?
-
The border which is drawn around the clip circle. The default is
kDefaultBorder. To disable the border, set border to
null
.final - child → Widget
-
The widget which is clipped by the clip circle.
final
- expandingRect → Rect
-
The rectangle which describes the center and dimension of the clip
circle at
animation.value
0
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
opacity
→ Animatable<
double> -
The Animatable which is used to fade the transition in and out.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadow
→ List<
BoxShadow> ? -
The shadow which is drawn beneath the clip circle. The default is
kDefaultShadow. To disable the shadow, set shadow to
null
.final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CircularClipTransitionState -
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
Static Properties
-
kDefaultOpacityAnimatable
→ TweenSequence<
double> -
The default value for opacity.
final
Constants
- kDefaultBorder → const Border
- The default value for border.
-
kDefaultShadow
→ const List<
BoxShadow> - The default value for shadow.