RotateAnimatedSplashScreenText constructor

RotateAnimatedSplashScreenText(
  1. String text, {
  2. TextAlign textAlign = TextAlign.start,
  3. TextStyle? textStyle,
  4. Duration duration = const Duration(milliseconds: 2000),
  5. double? transitionHeight,
  6. AlignmentGeometry alignment = Alignment.center,
  7. TextDirection textDirection = TextDirection.ltr,
})

Controls whether the text:

  • rotates in and out (true), or
  • just rotates in (false).

Note that you may want to adjust the duration when mixing RotateAnimatedText instances with mixed rotateOut values.

By default, it is set to true.

Implementation

RotateAnimatedSplashScreenText(
  String text, {
  TextAlign textAlign = TextAlign.start,
  TextStyle? textStyle,
  Duration duration = const Duration(milliseconds: 2000),
  this.transitionHeight,
  this.alignment = Alignment.center,
  this.textDirection = TextDirection.ltr,
}) : super(
        text: text,
        textAlign: textAlign,
        textStyle: textStyle,
        duration: duration,
      );