当前位置:网站首页>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
边栏推荐
- Summary of wrong questions 1
- RSA encryption and decryption signature verification
- Flutter 的加载动画这么玩更有趣
- Buuctf [actf2020 freshman competition] include1
- Go language learning notes - structure | go language from scratch
- Principle of synchronized implementation
- 成功的DevOps Leader 应该清楚的3个挑战
- First principle mind map
- ALV树(LL LR RL RR)插入删除
- NPM installation yarn
猜你喜欢

Secrets in buffctf file 1

个人主页软件Fenrus

What is monitoring intelligent playback and how to use intelligent playback to query video recording

I don't understand time, timestamp and time zone. Look at this article

JSON input of Chapter 14 of kettle paoding jieniu

kernel-pwn学习(3)--ret2user&&kernel ROP&&QWB2018-core

Summary of wrong questions 1

Leetcode题库78. 子集(递归 c实现)

Applet error: should have URL attribute when using navigateto, redirectto or switchtab

A must see wechat applet development guide 1 - basic knowledge
随机推荐
Go language learning notes - language interface | go language from scratch
Detailed explanation of delete, truncate and drop principles in MySQL database
LeetCode396. Rotate array
Unfortunately, I broke the leader's confidential documents and spit blood to share the code skills of backup files
Using JS to realize a thousandth bit
Using sqlmap injection to obtain the account and password of the website administrator
《信息系统项目管理师总结》第八章 项目干系人管理
Sql1 [geek challenge 2019]
JS prototype chain
《數字電子技術基礎》3.1 門電路概述、3.2 半導體二極管門電路
Employee probation application (Luzhou Laojiao)
112. 路径总和
Little girl walking
Go language learning notes - structure | go language from scratch
JS case to find the maximum value, reverse the array, bubble sort
Trc20 fund collection solution based on thinkphp5 version
MySQL of database -- overview and installation
EmuElec 编译总结
kettle实验
npm报错 :operation not permitted, mkdir ‘C: \Program Files \node js \node_ cache _ cacache’