SlideCountdown constructor

const SlideCountdown({
  1. Key? key,
  2. Duration? duration,
  3. TextStyle style = kDefaultTextStyle,
  4. TextStyle separatorStyle = kDefaultTextStyle,
  5. Widget? icon,
  6. Widget? suffixIcon,
  7. String? separator,
  8. Widget? replacement,
  9. VoidCallback? onDone,
  10. DurationTitle? durationTitle,
  11. SeparatorType separatorType = SeparatorType.symbol,
  12. SlideDirection slideDirection = SlideDirection.down,
  13. EdgeInsets padding = kDefaultPadding,
  14. EdgeInsets separatorPadding = kDefaultSeparatorPadding,
  15. bool showZeroValue = false,
  16. Decoration decoration = kDefaultBoxDecoration,
  17. bool countUp = false,
  18. bool infinityCountUp = false,
  19. bool? countUpAtDuration,
  20. OverrideDigits? digitsNumber,
  21. StreamDuration? streamDuration,
  22. ValueChanged<Duration>? onChanged,
  23. ShouldShowItems? shouldShowDays,
  24. ShouldShowItems? shouldShowHours,
  25. ShouldShowItems? shouldShowMinutes,
  26. 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,
});