FadeIn.themed constructor
FadeIn.themed({
- Key? key,
- required BuildContext context,
- required Widget child,
- Duration? duration,
- Duration delay = Duration.zero,
- Curve? curve,
- bool autoPlay = true,
- VoidCallback? onComplete,
- VoidCallback? onCancel,
- bool maintainState = true,
- bool respectSystemPreferences = true,
Create a fade-in animation using theme configuration
Implementation
factory FadeIn.themed({
Key? key,
required BuildContext context,
required Widget child,
Duration? duration,
Duration delay = Duration.zero,
Curve? curve,
bool autoPlay = true,
VoidCallback? onComplete,
VoidCallback? onCancel,
bool maintainState = true,
bool respectSystemPreferences = true,
}) {
final theme = FSTheme.of(context);
final animationConfig = theme.animation;
return FadeIn(
key: key,
child: child,
duration: duration ?? animationConfig.duration,
delay: delay,
curve: curve ?? animationConfig.curve,
autoPlay: autoPlay,
onComplete: onComplete,
onCancel: onCancel,
maintainState: maintainState,
respectSystemPreferences: respectSystemPreferences,
);
}