SlideCountdown constructor
const
SlideCountdown({
- Key? key,
- Duration? duration,
- TextStyle style = kDefaultTextStyle,
- TextStyle separatorStyle = kDefaultTextStyle,
- Widget? icon,
- Widget? suffixIcon,
- String? separator,
- Widget? replacement,
- VoidCallback? onDone,
- DurationTitle? durationTitle,
- SeparatorType separatorType = SeparatorType.symbol,
- SlideDirection slideDirection = SlideDirection.down,
- EdgeInsets padding = kDefaultPadding,
- EdgeInsets separatorPadding = kDefaultSeparatorPadding,
- bool showZeroValue = false,
- Decoration decoration = kDefaultBoxDecoration,
- bool countUp = false,
- bool infinityCountUp = false,
- bool? countUpAtDuration,
- OverrideDigits? digitsNumber,
- StreamDuration? streamDuration,
- ValueChanged<
Duration> ? onChanged, - ShouldShowItems? shouldShowDays,
- ShouldShowItems? shouldShowHours,
- ShouldShowItems? shouldShowMinutes,
- ShouldShowItems? shouldShowSeconds,
The SlideCountdownSeparated is a StatefulWidget that creates a countdown timer that slides up or down to display the remaining time and each duration will be separated.
Example usage:
SlideCountdown(
duration: const Duration(days: 2),
);
Implementation
const SlideCountdown({
super.key,
super.duration,
super.style = kDefaultTextStyle,
super.separatorStyle = kDefaultTextStyle,
super.icon,
super.suffixIcon,
super.separator,
super.replacement,
super.onDone,
super.durationTitle,
super.separatorType = SeparatorType.symbol,
super.slideDirection = SlideDirection.down,
super.padding = kDefaultPadding,
super.separatorPadding = kDefaultSeparatorPadding,
super.showZeroValue = false,
super.decoration = kDefaultBoxDecoration,
super.countUp = false,
super.infinityCountUp = false,
super.countUpAtDuration,
super.digitsNumber,
super.streamDuration,
super.onChanged,
super.shouldShowDays,
super.shouldShowHours,
super.shouldShowMinutes,
super.shouldShowSeconds,
});