ditclear / Tiktok_gestures
Licence: other
使用Flutter仿写TikTok的手势交互(use flutter to mimic gestures in tiktok)
Stars: ✭ 236
Programming Languages
dart
5743 projects
Labels
TikTok_Gestures
使用Flutter模仿TikTok中的手势交互效果
主要用到了Flutter中的
- GestureDetector:手势检测
- Transform:scale、translate、rotate订单变换
- Hero动画:提供共享元素转换的效果
原理:通过检测手指的滑动,得到一个x坐标或者y坐标的偏移量,然后配合Transform进行各种不同的变换
实现效果
demo下载
相关文章
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].