FSStaggeredSlideIn.themed constructor
FSStaggeredSlideIn.themed({
- Key? key,
- required BuildContext context,
- required List<
Widget> children, - FSSlideDirection direction = FSSlideDirection.fromBottom,
- Duration? duration,
- Duration staggerDelay = const Duration(milliseconds: 100),
- Curve? curve,
- bool autoPlay = true,
- double offsetFraction = 1.0,
- bool maintainState = true,
- String? semanticLabel,
- bool respectSystemPreferences = true,
Create with theme configuration
Implementation
factory FSStaggeredSlideIn.themed({
Key? key,
required BuildContext context,
required List<Widget> children,
FSSlideDirection direction = FSSlideDirection.fromBottom,
Duration? duration,
Duration staggerDelay = const Duration(milliseconds: 100),
Curve? curve,
bool autoPlay = true,
double offsetFraction = 1.0,
bool maintainState = true,
String? semanticLabel,
bool respectSystemPreferences = true,
}) {
final theme = theme_lib.FSTheme.of(context);
return FSStaggeredSlideIn(
key: key,
children: children,
direction: direction,
duration: duration ?? theme.animation.duration,
staggerDelay: staggerDelay,
curve: curve ?? theme.animation.curve,
autoPlay: autoPlay,
offsetFraction: offsetFraction,
maintainState: maintainState,
semanticLabel: semanticLabel,
respectSystemPreferences: respectSystemPreferences,
);
}