FadeIn constructor

const FadeIn({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 500),
  4. Duration delay = Duration.zero,
  5. Curve curve = Curves.easeOut,
  6. bool autoPlay = true,
  7. VoidCallback? onComplete,
  8. VoidCallback? onCancel,
  9. bool maintainState = true,
  10. bool respectSystemPreferences = true,
})

Creates a fade-in animation widget

Implementation

const FadeIn({
  super.key,
  required this.child,
  this.duration = const Duration(milliseconds: 500),
  this.delay = Duration.zero,
  this.curve = Curves.easeOut,
  this.autoPlay = true,
  this.onComplete,
  this.onCancel,
  this.maintainState = true,
  this.respectSystemPreferences = true,
});