Skip to Main Content
Flutter for Beginners
book

Flutter for Beginners

by Alessandro Biessek
September 2019
Beginner content levelBeginner
512 pages
12h 52m
English
Packt Publishing
Content preview from Flutter for Beginners

Implementing Hero transitions

We are going to change our Favors app to have a Hero animation between the Your favors list screen and the Requesting favor screen, so that when we tap on the Request a favor floating button, there will be a smooth transition between it and the next page. The same effect works when going back from the Requesting favor to the Your favors screen:

Your favors (This is an image of Your favors. The other (overlapped) information is not important here)

We start the change by adding a Hero widget to our tree. It should wrap the widgets involved in the animation:

class FavorsPageState extends State<FavorsPage> { // ... ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Flutter for Beginners - Second Edition

Flutter for Beginners - Second Edition

Thomas Bailey, Alessandro Biessek
Flutter for Beginners - Third Edition

Flutter for Beginners - Third Edition

Thomas Bailey, Alessandro Biessek

Publisher Resources

ISBN: 9781788996082Supplemental Content