FadeAnimatedTextKit constructor
FadeAnimatedTextKit({
- Key? key,
- required List<
String> text, - TextAlign textAlign = TextAlign.start,
- TextStyle? textStyle,
- Duration duration = const Duration(milliseconds: 2000),
- Duration pause = const Duration(milliseconds: 500),
- double fadeInEnd = 0.5,
- double fadeOutBegin = 0.8,
- VoidCallback? onTap,
- void onNext()?,
- void onNextBeforePause()?,
- VoidCallback? onFinished,
- bool isRepeatingAnimation = true,
- int totalRepeatCount = 3,
- bool repeatForever = false,
- bool displayFullTextOnTap = false,
- bool stopPauseOnTap = false,
Implementation
FadeAnimatedTextKit({
Key? key,
required List<String> text,
TextAlign textAlign = TextAlign.start,
TextStyle? textStyle,
Duration duration = const Duration(milliseconds: 2000),
Duration pause = const Duration(milliseconds: 500),
double fadeInEnd = 0.5,
double fadeOutBegin = 0.8,
VoidCallback? onTap,
void Function(int, bool)? onNext,
void Function(int, bool)? onNextBeforePause,
VoidCallback? onFinished,
bool isRepeatingAnimation = true,
int totalRepeatCount = 3,
bool repeatForever = false,
bool displayFullTextOnTap = false,
bool stopPauseOnTap = false,
}) : super(
key: key,
animatedTexts: _animatedTexts(
text, textAlign, textStyle, duration, fadeInEnd, fadeOutBegin),
pause: pause,
displayFullTextOnTap: displayFullTextOnTap,
stopPauseOnTap: stopPauseOnTap,
onTap: onTap,
onNext: onNext,
onNextBeforePause: onNextBeforePause,
onFinished: onFinished,
isRepeatingAnimation: isRepeatingAnimation,
totalRepeatCount: totalRepeatCount,
repeatForever: repeatForever,
);