当前位置:网站首页>Still using listview? Use animatedlist to make list elements move
Still using listview? Use animatedlist to make list elements move
2022-04-23 20:09:00 【Manon on the island】
Preface
Lists are the most used components in mobile applications , We also often add or delete list elements , The simplest way is to change the list data , direct setState
Update list interface . One drawback of this approach is that list elements will suddenly disappear ( Delete ) Or appear ( add to ), When the contents of the list elements are close , We don't even know if the operation was successful . And if there is a dynamic effect to show the process of disappearance and emergence , Then the experience will be much better , For example, the following effects , When deleting elements , There will be a disappearing animation , When adding elements, there will be a gradual effect .
What is used here is AnimatedList
, The sample code of this article is mainly from the official documents :AnimatedList Components . It should be noted that , After all, the list is animated , It will definitely have an impact on performance , It is suggested that only the elements that need to be deleted 、 Increase the list of small amounts of data for operations .
AnimatedList Introduce
AnimatedList
yes ListView
An alternative , Constructors are basically the same as ListView
Agreement .
const AnimatedList({
Key? key,
required this.itemBuilder,
this.initialItemCoun
版权声明
本文为[Manon on the island]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204232004585116.html
边栏推荐
- 视频理解-Video Understanding
- Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
- 如何在BNB鏈上創建BEP-20通證
- Use test of FFT and IFFT library functions of TI DSP
- 渤海期货这家公司怎么样。期货开户办理安全?
- antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
- A simple (redisson based) distributed synchronization tool class encapsulation
- MySQL数据库 - 单表查询(一)
- 山大网安靶场实验平台项目—个人记录(四)
- Software College of Shandong University Project Training - Innovation Training - network security shooting range experimental platform (8)
猜你喜欢
antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
Physical meaning of FFT: 1024 point FFT is 1024 real numbers. The actual input to FFT is 1024 complex numbers (imaginary part is 0), and the output is also 1024 complex numbers. The effective data is
[numerical prediction case] (3) LSTM time series electricity quantity prediction, with tensorflow complete code attached
LeetCode异或运算
aqs的学习
Shanda Wangan shooting range experimental platform project - personal record (V)
LeetCode动态规划训练营(1~5天)
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
随机推荐
Unity创建超写实三维场景的一般步骤
MFC obtains local IP (used more in network communication)
DTMF双音多频信号仿真演示系统
Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
Video understanding
Esp8266 - beginner level Chapter 1
Openharmony open source developer growth plan, looking for new open source forces that change the world!
Five minutes to show you what JWT is
SIGIR'22「微软」CTR估计:利用上下文信息促进特征表征学习
Efficient serial port cyclic buffer receiving processing idea and code 2
如何在BNB鏈上創建BEP-20通證
Record: call mapper to report null pointer Foreach > the usage of not removing repetition;
山大网安靶场实验平台项目—个人记录(四)
[webrtc] add x264 encoder for CEF / Chromium
Redis distributed lock
STM32 Basics
Kibana reports an error server is not ready yet. Possible causes
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
MySQL数据库 - 单表查询(三)
nc基础用法2