FSScaleAnimation constructor

const FSScaleAnimation({
  1. Key? key,
  2. required Widget child,
  3. double beginScale = 0.0,
  4. double endScale = 1.0,
  5. Duration duration = const Duration(milliseconds: 500),
  6. Duration delay = Duration.zero,
  7. Curve curve = Curves.easeOut,
  8. Alignment alignment = Alignment.center,
  9. bool autoPlay = true,
  10. VoidCallback? onComplete,
  11. VoidCallback? onCancel,
  12. bool maintainState = true,
  13. 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');