v0.2.1text_scroll
TextScroll Flutter 小部件增加了文字自動滾動功能(跑馬燈文字)。
188喜歡 1.9萬近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
yurii-khi/text_scroll open-source repository details.
{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
TextScroll Flutter widget adds text auto-scrolling functionality (marquee text).
demo
endless and bouncing modesstyle and textAlign supportTo use this package, add text_scroll as a dependency in your pubspec.yaml file.
Minimal example:
TextScroll('This is the sample text for Flutter TextScroll widget. ')
Custom settings:
TextScroll(
'This is the sample text for Flutter TextScroll widget. ',
mode: TextScrollMode.bouncing,
velocity: Velocity(pixelsPerSecond: Offset(150, 0)),
delayBefore: Duration(milliseconds: 500),
numberOfReps: 5,
pauseBetween: Duration(milliseconds: 50),
style: TextStyle(color: Colors.green),
textAlign: TextAlign.right,
selectable: true,
)