当前位置:网站首页>Flutter's loading animation is more interesting
Flutter's loading animation is more interesting
2022-04-23 09:28:00 【Manon on the island】
Preface
We use Stack
Component time , You usually use Positioned
Components are used as sub components Stack
The positioning of ,Positioned
adopt top
,bottom
,height
Choose two out of three to determine the position and size in the vertical direction , Use left
,right
and width
Choose two out of three to determine the position and size in the horizontal direction . Corresponding , We can use AnimatedPositioned
Component to implement sub components in Stack
Mobile in 、 Other effects such as size change . In this article, we use this component to build the animation effect of two ball chasing , In order to fully understand the use of this component .
Effect analysis
You can see from the graph , The blue ball and orange ball will follow the left side of the big white circle first and then 、 Next 、 Right 、 Move the top vertex , At the same time, there will be a pop-up effect when starting the switch . The specific implementation logic is as follows :
- Along the great circle 4 Point movement effect , We can control the starting position of the ball and we can do it .
- The bounce effect can be used
bounceIn
Curve realization . - The effect of chasing one after another , You can set an ordered array of positions , The position of one ball is the next position of another ball , This can be achieved by taking positions from the position array using different subscripts .
- Realization of repetitive dynamic effect : Repeated dynamic use
AnimatedPositioned
OfonEnd
Trigger &
版权声明
本文为[Manon on the island]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230923467055.html
边栏推荐
- Kettle实验 (三)
- Program, process, thread; Memory structure diagram; Thread creation and startup; Common methods of thread
- Unfortunately, I broke the leader's confidential documents and spit blood to share the code skills of backup files
- 重载、重写、隐藏的对比
- Common errors of VMware building es8
- To remember the composition ~ the pre order traversal of binary tree
- kettle实验
- What is augmented reality technology? Where can it be used?
- JS case to find the maximum value, reverse the array, bubble sort
- RSA 加密解密签名验签
猜你喜欢
搞不懂时间、时间戳、时区,快来看这篇
Principle of synchronized implementation
Number of islands
Secrets in buffctf file 1
kettle实验
LeetCode 1611. The minimum number of operations to make an integer 0
3、 6 [Verilog HDL] gate level modeling of basic knowledge
Acquisition of DOM learning elements JS
Go language learning notes - array | go language from scratch
错题汇总1
随机推荐
DMP engine work summary (2021, lightsaber)
kettle实验
Go language learning notes - slice, map | go language from scratch
小女孩行走
JSON input of Chapter 14 of kettle paoding jieniu
Node installation
《信息系统项目管理师总结》第八章 项目干系人管理
MySQL of database -- overview and installation
【读书笔记】《Verilog数字系统设计教程》 第5章 条件语句、循环语句和块语句(附思考题答案)
What is augmented reality technology? Where can it be used?
STM32 and FreeRTOS stack parsing
Cloud computing competition -- basic part of 2020 competition [task 3]
112. Path sum
js 原型链的深入
Yyds dry goods inventory ubuntu18 0.4 install MySQL and solve error 1698: access denied for user ''root' '@' 'localhost' '
AQS & reentrantlock implementation principle
Harbor enterprise image management system
Buuctf [actf2020 freshman competition] include1
三、6【Verilog HDL】基础知识之门级建模
kernel-pwn学习(4)--Double Fetch&&0CTF2018-baby