这个代码实现了两种比较酷的动画效果:
1. 程序启动画面(splash画面)到程序界面(root view controller)之间的过渡动画效果是翻书的效果。即开机画面停留一小段时间后,慢慢像翻书一样翻到程序主页面。
2. 第二个效果十分特殊,是当用户点击星星的按钮(收藏按钮)之后,按钮上的星星图标会慢慢坠落到tab bar上面。在星星坠落的过程,tab bar上其他的tab慢慢变暗,只留下图标是星星的tab。也就是让用户慢慢看到收藏的效果。 [Code4App.com]
You can use the Navigator to push a semi-transparent ModalRoute: import 'package:flutter/material.dart'; class TutorialOverlay extends ModalRoute<void> { @override Duration get transitionDuration
Screen slides are transitions between one entire screen to another and are common with UIs like setup wizards or slideshows. This lesson shows you how to do screen slides with a ViewPager provided by
This lesson demonstrates how to do a touch-to-zoom animation, which is useful for apps such as photo galleries to animate a view from a thumbnail to a full-size image that fills the screen. Here's wha
Crossfade animations (also know as dissolve) gradually fade out one UI component while simultaneously fading in another. This animation is useful for situations where you want to switch content or vie