当前位置:网站首页>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
bounceInCurve 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
AnimatedPositionedOfonEndTrigger &
版权声明
本文为[Manon on the island]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230923467055.html
边栏推荐
- Kettle experiment (III)
- NPM reports an error: operation not allowed, MKDIR 'C: \ program files \ node JS \ node_ cache _ cacache’
- [reading notes] Chapter 5 conditional statements, circular statements and block statements of Verilog digital system design tutorial (with answers to thinking questions)
- Wechat applet catchtap = "todetail" event problem
- Go language learning notes - slice, map | go language from scratch
- Flink SQL realizes the integration of stream and batch
- On array replication
- Canary publishing using ingress
- What is monitoring intelligent playback and how to use intelligent playback to query video recording
- MySQL of database -- Fundamentals
猜你喜欢

Cross domain configuration error: when allowcredentials is true, allowedorigins cannot contain the special value "*“

Kettle实验 (三)

STM32 and FreeRTOS stack parsing

SAP 101K 411K 库存变化

Machine learning (VI) -- Bayesian classifier

小程序报错 :should have url attribute when using navigateTo, redirectTo or switchTab

Harbor enterprise image management system

GoLand debug go use - white record

搞不懂时间、时间戳、时区,快来看这篇

Go language learning notes - structure | go language from scratch
随机推荐
Buuctf [actf2020 freshman competition] include1
小程序报错:Cannot read property 'currentTarget' of undefined
STM32 and FreeRTOS stack parsing
3、 6 [Verilog HDL] gate level modeling of basic knowledge
A must see wechat applet development guide 1 - basic knowledge
Little girl walking
Kettle experiment conversion case
[boutique] using dynamic agent to realize unified transaction management II
653. Sum of two IV - input BST
DVWA range practice
npm ERR! network
JS what is an event? Event three elements and operation elements
[C language] document operation
501. Mode in binary search tree
Simple understanding of arguments in JS
Go language learning notes - array | go language from scratch
Set the maximum width of the body, but why does the background color of the body cover the whole page?
GUI, CLI and UNIX Philosophy
Write down the post order traversal of the ~ binary tree
LeetCode 1611. The minimum number of operations to make an integer 0