Skip to content

Sample test for SharedAxisTransition#1

Closed
shihaohong wants to merge 11 commits into
grinder15:fix/transition-widgets-child-state-creationfrom
shihaohong:transition-widgets-child-state-creation
Closed

Sample test for SharedAxisTransition#1
shihaohong wants to merge 11 commits into
grinder15:fix/transition-widgets-child-state-creationfrom
shihaohong:transition-widgets-child-state-creation

Conversation

@shihaohong

@shihaohong shihaohong commented May 11, 2020

Copy link
Copy Markdown

Ignore the rest of the code changes, they seem to be since you haven't merged to flutter/animations's master branch in a while. Once you rebase/merge with flutter/animations master, the rest of the file diffs should disappear. Or, you could just pick out the test I added and apply that directly to your branch.

Take a look at the test starting from https://github.com/grinder15/packages/pull/1/files#diff-ca7f59dbfd46169f7fa7e5467a016f1aR1636 and let me know what you think! Apply that to the rest of the transition tests

grinder15 and others added 11 commits April 20, 2020 22:49
…oning

Transition widgets like FadeScaleTransition, FadeThroughTransition, and SharedAxisTransition is changing their subtree levels of widgets when transitioning causing the child state object to get recreated.

CompositeAnimatedWidget solves the issue, instead of rebuilding animation widgets in AnimatedBuilder, it builds its transitions, stacked and only changing animation values to achieve different transitions on forward and reverse.

Issue:
   flutter/flutter#53550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants