LinearMovingText constructor
LinearMovingText(
- String text, {
- Key? key,
- TextStyle style = const TextStyle(),
- StrutStyle? strutStyle,
- TextAlign? textAlign = TextAlign.left,
- TextDirection? textDirection,
- Locale? locale,
- bool softWrap = true,
- TextOverflow overflow = TextOverflow.clip,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- Color? sectionColor,
- dynamic duration = const Duration(seconds: 3),
- dynamic direction,
- double? width,
- double? height,
- Color? backgroundColor,
- 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,
)
)
);