当前位置:网站首页>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
边栏推荐
- Devops integration - environment variables and building tools of Jenkins service
- Openharmony open source developer growth plan, looking for new open source forces that change the world!
- 【2022】将3D目标检测看作序列预测-Point2Seq: Detecting 3D Objects as Sequences
- Redis distributed lock
- Five minutes to show you what JWT is
- Efficient serial port cyclic buffer receiving processing idea and code 2
- Kubernetes入门到精通-在 Kubernetes 上安装 OpenELB
- 【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
- NC basic usage 4
- CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
猜你喜欢

Leetcode XOR operation

DTMF dual tone multi frequency signal simulation demonstration system

如何在BNB链上创建BEP-20通证

Class loading process of JVM

STM32基础知识

山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(七)

Five minutes to show you what JWT is

aqs的学习

Openharmony open source developer growth plan, looking for new open source forces that change the world!

Understanding various team patterns in scrum patterns
随机推荐
Esp8266 - beginner level Chapter 1
Mysql database - single table query (III)
[2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
[report] Microsoft: application of deep learning methods in speech enhancement
MySQL数据库 - 单表查询(二)
Redis distributed lock
Distinction between pointer array and array pointer
Electron入门教程4 —— 切换应用的主题
Deep learning -- Summary of Feature Engineering
【webrtc】Add x264 encoder for CEF/Chromium
【h264】libvlc 老版本的 hevc h264 解析,帧率设定
IIS data conversion problem: 16bit to 24bit
音频编辑生成软件
Use test of FFT and IFFT library functions of TI DSP
一个简单的(基于redisson的)分布式同步工具类封装
[H264] hevc H264 parsing and frame rate setting of the old version of libvlc
R语言ggplot2可视化:ggplot2可视化散点图并使用geom_mark_ellipse函数在数据簇或数据分组的数据点周围添加椭圆进行注释
视频理解-Video Understanding
Openharmony open source developer growth plan, looking for new open source forces that change the world!
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数