List component for infinite loop scrolling in Flutter

The invention relates to an infinite loop rolling list component in Flutter. The method comprises the following steps: creating an animation effect; writing a list container; obtaining an element UI and a data list input by a user; judging data; displaying an element UI and a data list input by a us...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG LU, ZHANG HAIQING, PENG ZEFENG, FAN XIAOWANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to an infinite loop rolling list component in Flutter. The method comprises the following steps: creating an animation effect; writing a list container; obtaining an element UI and a data list input by a user; judging data; displaying an element UI and a data list input by a user; and compiling tasks of automatic scrolling and animation insertion. According to the method, the Flutter component is packaged, and meanwhile, the Timer class is used for performing the timed task to process the automatic rolling timed task, so that the work of writing duplicated codes with the same function is greatly reduced, the code data volume is small, the use method is simple, and the practicability is high. 本发明涉及Flutter中无限循环滚动的列表组件,包括如下步骤:创建动画效果;编写列表容器;获取用户传入的元素UI及数据列表;数据判断;显示用户传入的元素UI及数据列表;编写自动滚动、插入动画的任务。本发明通过对Flutter组件的封装,同时利用Timer类做定时任务来处理自动滚动定时任务,极大降低了相同功能编写重复代码的工作,代码数据量少,用法简单,实用性强。