Skip to content

Conversation

@bleroux
Copy link
Contributor

@bleroux bleroux commented Mar 24, 2023

Description

This PR fixes _NavigationDestinationBuilder to avoid unexpected rebuild.

Using the code sample provided in #122811 (comment), results are:

Before (icon color changes on every tap and icon animation shows only initial and final states)

122811_repro.mp4

After (icon color stays the same on tap and icon animation works as expected)

Capture.video.du.2023-03-24.14-18-42.mp4

Related Issue

Fixes #122811

Tests

Adds 1 test.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Mar 24, 2023
@bleroux bleroux force-pushed the fix_animations_in_NavigationDestination_icons_do_not_work branch from f5a680c to 3c78416 Compare March 24, 2023 16:14
@HansMuller HansMuller self-requested a review March 24, 2023 16:39
Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another nice fix! LGTM

@HansMuller HansMuller merged commit 6e2bbf9 into flutter:master Mar 27, 2023
@bleroux bleroux deleted the fix_animations_in_NavigationDestination_icons_do_not_work branch March 27, 2023 20:54
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Animations in NavigationDestination icons don't work well

2 participants