Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
447 views
in Technique[技术] by (71.8m points)

flutter - How to fade a widget's color, text and icon to a different page while the hero animation is also occurring?

I wish to animate a button between two pages. The button's color, text, icon, and screen position will all be changing. I wish to do a cross fade between the color, text, and icon while the button's position is also moving at the same time (and also in the reverse direction).

Essentially, I wish to combine an AnimatedCrossFade with a Hero.

How can I do this?

Currently, the position is changing over time as expected, and the button is also changing styles. However, the style (color, text, icon) is changing immediately as soon as I press the button - it is not fading between the two over time.

question from:https://stackoverflow.com/questions/66050245/how-to-fade-a-widgets-color-text-and-icon-to-a-different-page-while-the-hero-a

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...