LinearMovingText constructor

LinearMovingText(
  1. String text, {
  2. Key? key,
  3. TextStyle style = const TextStyle(),
  4. StrutStyle? strutStyle,
  5. TextAlign? textAlign = TextAlign.left,
  6. TextDirection? textDirection,
  7. Locale? locale,
  8. bool softWrap = true,
  9. TextOverflow overflow = TextOverflow.clip,
  10. double? textScaleFactor,
  11. int? maxLines,
  12. String? semanticsLabel,
  13. TextWidthBasis? textWidthBasis,
  14. TextHeightBehavior? textHeightBehavior,
  15. Color? sectionColor,
  16. dynamic duration = const Duration(seconds: 3),
  17. dynamic direction,
  18. double? width,
  19. double? height,
  20. Color? backgroundColor,
  21. dynamic padding = const EdgeInsets.all(0.0),
})

Implementation

LinearMovingText(this.text, {
  Key? key,
  this.style = const TextStyle(),
  this.strutStyle,
  this.textAlign = TextAlign.left,
  this.textDirection,
  this.locale,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.sectionColor,
  duration = const Duration(seconds: 3),
  direction,
  this.width,
  this.height,
  this.backgroundColor,
  padding = const EdgeInsets.all(0.0),
}) : super(
    key: key,
    duration: duration,
    direction: direction,
    curve: Curves.linear,
    padding: padding,
    child: Container(
        color: backgroundColor,
        width: width,
        height: height,
        padding: padding,
        child: Text(
          text,
          style: style,
          strutStyle: strutStyle,
          textAlign: textAlign,
          textDirection: textDirection,
          locale: locale,
          softWrap: softWrap,
          overflow: overflow,
          textScaleFactor: textScaleFactor,
          maxLines: maxLines,
          semanticsLabel: semanticsLabel,
          textWidthBasis: textWidthBasis,
          textHeightBehavior: textHeightBehavior,
          selectionColor: sectionColor,
        )
    )
);