ScaleBackdropTransform class
The default BackdropTransform: scales the backdrop down from 1.0 to
minScale as the sheet opens, and (for the root layer) clips its corners
with an animated radius.
This reproduces the classic drawer "zoom-out" effect where the underlying content shrinks slightly to reveal the drawer sliding in from the edge.
- Inheritance
-
- Object
- BackdropTransform
- ScaleBackdropTransform
Constructors
- ScaleBackdropTransform({double minScale = kBackdropScaleDown, double? cornerRadius})
-
Creates a scaling backdrop transform.
const
Properties
- cornerRadius → double?
-
The corner radius the root backdrop clips to when fully open. When null,
Theme.of(context).radiusXxlis used.final - hashCode → int
-
The hash code for this object.
no setterinherited
- minScale → double
-
The scale applied to the backdrop when fully open. Defaults to
kBackdropScaleDown (0.95).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveExtraSize(
Size size, double t, {bool isRoot = true}) → Size -
The amount of space (per axis) freed by this transform for a backdrop of
sizeat progresst. Returns Size.zero when nothing is freed.override -
scaleAt(
double t) → double -
The scale factor at progress
t(1.0 at t=0, minScale at t=1). -
toString(
) → String -
A string representation of this object.
inherited
-
wrapBackdrop(
BuildContext context, Widget child, double t, {bool isRoot = true}) → Widget -
Wraps
child(the backdrop content) with the visual transform for progresst(0 = closed, 1 = fully open).override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited