当前位置:网站首页>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
边栏推荐
- Mysql database - basic operation of database and table (II)
- selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
- [webrtc] add x264 encoder for CEF / Chromium
- Video understanding
- nc基础用法4
- 微信中金财富高端专区安全吗,证券如何开户呢
- 深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
- kibana 报错 server is not ready yet 可能的原因
- SRS 的部署
- A brief explanation of golang's keyword "competence"
猜你喜欢
Understanding various team patterns in scrum patterns
精简CUDA教程——CUDA Driver API
Class loading process of JVM
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(六)
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
Leetcode XOR operation
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (VII)
随机推荐
nc基础用法2
SRS 的部署
php参考手册String(7.2千字)
图书管理数据库系统设计
Main differences between go and PHP
视频理解-Video Understanding
C学习完结
A brief explanation of golang's keyword "competence"
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
Kubernetes入门到精通-在 Kubernetes 上安装 OpenELB
[H264] hevc H264 parsing and frame rate setting of the old version of libvlc
Remote code execution in Win 11 using wpad / PAC and JScript 3
MySQL数据库 - 连接查询
Shanda Wangan shooting range experimental platform project - personal record (IV)
Scrum Patterns之理解各种团队模式
[report] Microsoft: application of deep learning methods in speech enhancement
C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
Distinction between pointer array and array pointer
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
Grafana shares links with variable parameters