77

Flutter 跑马灯

 5 years ago
source link: https://juejin.im/post/5c55b36051882562811d2ddd
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
本文介绍2种跑马灯效果的实现:连贯式,非连贯式。效果如下图 连贯式 实现思路:写一个无限长度的列表(ListView),通过一个定时任务(Timer)每隔一定时间滑动一定距离(ScrollController)。这里面比较tricky的是滑动距离的设置,你不

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK