当前位置:网站首页>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
边栏推荐
- Redis installation (centos7 command line installation)
- 程序设计语言基础(2)
- Fundamentals of programming language (2)
- IIS data conversion problem: 16bit to 24bit
- 精简CUDA教程——CUDA Driver API
- Redis distributed lock
- NC basic usage 3
- Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
- Scrum Patterns之理解各种团队模式
- LPC1768 关于延时Delay时间与不同等级的优化对比
猜你喜欢
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
aqs的学习
Esp8266 - beginner level Chapter 1
How to create bep-20 pass on BNB chain
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
AQS learning
【webrtc】Add x264 encoder for CEF/Chromium
Software College of Shandong University Project Training - Innovation Training - network security shooting range experimental platform (8)
Deep learning -- Summary of Feature Engineering
如何在BNB鏈上創建BEP-20通證
随机推荐
A simple (redisson based) distributed synchronization tool class encapsulation
[text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached
Openharmony open source developer growth plan, looking for new open source forces that change the world!
Mysql database - single table query (I)
How to select the third-party package of golang
Deep learning -- Summary of Feature Engineering
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (6)
C学习完结
NC basic usage 4
LeetCode异或运算
Design of warehouse management database system
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
LeetCode动态规划训练营(1~5天)
nc基础用法
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
kibana 报错 server is not ready yet 可能的原因
Inject Autowired fields into ordinary beans
MySQL数据库 - 数据库和表的基本操作(二)
如何在BNB鏈上創建BEP-20通證
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(七)