letsar / flutter_sidekick

Widgets for creating Hero-like animations between two widgets within the same screen.
MIT License
294 stars 40 forks source link

add param to keep showing from widget after flight #7

Open maks-nuraphone opened 5 years ago

maks-nuraphone commented 5 years ago

This PR adds a new param to use with the source "from" Sidekick widget to allow choosing to keep showing the original source widget.

My thanks to @efortuna for submitting the bugfix that this PR essentially optionally disables as otherwise I would not have realised this functionality was possible with Sidekick.

The reason I want to be able to do this is to use Sidekick to implement an animation which temporarily replaces the target widget, as shown in the video below.

ps. My apologies for the laggyness at the end of the animation in the video, that just seems to be due to recording on the emulator, the actual animation is nice and smooth.

sidekick-pr webm