v0.2.1text_scroll
TextScroll Flutter 小部件添加了文本自动滚动功能(跑马灯文本)。
194喜欢 2.2万近 30 天下载150Pub 分数
AndroidiOSWebmacOSWindowsLinux
yurii-khi/text_scroll open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
TextScroll Flutter widget adds text auto-scrolling functionality (marquee text).
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,
)
依赖清单 1 项
{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗