FSScaleAnimation constructor
const
FSScaleAnimation({
- Key? key,
- required Widget child,
- double beginScale = 0.0,
- double endScale = 1.0,
- Duration duration = const Duration(milliseconds: 500),
- Duration delay = Duration.zero,
- Curve curve = Curves.easeOut,
- Alignment alignment = Alignment.center,
- bool autoPlay = true,
- VoidCallback? onComplete,
- VoidCallback? onCancel,
- bool maintainState = true,
- bool respectSystemPreferences = true,
Creates a scale animation widget
Implementation
const FSScaleAnimation({
super.key,
required this.child,
this.beginScale = 0.0,
this.endScale = 1.0,
this.duration = const Duration(milliseconds: 500),
this.delay = Duration.zero,
this.curve = Curves.easeOut,
this.alignment = Alignment.center,
this.autoPlay = true,
this.onComplete,
this.onCancel,
this.maintainState = true,
this.respectSystemPreferences = true,
}) : assert(beginScale >= 0.0, 'Begin scale must be non-negative'),
assert(endScale >= 0.0, 'End scale must be non-negative');