FSStaggeredFadeIn.themed constructor

FSStaggeredFadeIn.themed({
  1. Key? key,
  2. required BuildContext context,
  3. required List<Widget> children,
  4. Duration? duration,
  5. Duration staggerDelay = const Duration(milliseconds: 100),
  6. Curve? curve,
  7. bool autoPlay = true,
  8. bool maintainState = true,
  9. String? semanticLabel,
  10. bool respectSystemPreferences = true,
})

Create with theme configuration

Implementation

factory FSStaggeredFadeIn.themed({
  Key? key,
  required BuildContext context,
  required List<Widget> children,
  Duration? duration,
  Duration staggerDelay = const Duration(milliseconds: 100),
  Curve? curve,
  bool autoPlay = true,
  bool maintainState = true,
  String? semanticLabel,
  bool respectSystemPreferences = true,
}) {
  final theme = theme_lib.FSTheme.of(context);
  return FSStaggeredFadeIn(
    key: key,
    children: children,
    duration: duration ?? theme.animation.duration,
    staggerDelay: staggerDelay,
    curve: curve ?? theme.animation.curve,
    autoPlay: autoPlay,
    maintainState: maintainState,
    semanticLabel: semanticLabel,
    respectSystemPreferences: respectSystemPreferences,
  );
}