Skip to content

Conversation

@xu-baolin
Copy link
Member

fixes #83668

  // It is possible that the fade-out animation of the sheet has not finished
  // yet, and the key needs to be regenerated at this time, otherwise, there will
  // be an exception of duplicate GlobalKey.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Jun 1, 2021
@google-cla google-cla bot added the cla: yes label Jun 1, 2021
@xu-baolin xu-baolin requested a review from Piinks June 1, 2021 05:11
@nt4f04uNd
Copy link
Member

nt4f04uNd commented Jun 1, 2021

What if we remove the key, just save the setState callback?

@xu-baolin
Copy link
Member Author

What if we remove the key, just save the setState callback?

The effect is the same, but it is not routine to do that in the framework, but it is often done in tests. ^ ^

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.

LGTM

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

Flutter_LGTM

@fluttergithubbot fluttergithubbot merged commit 9a243a1 into flutter:master Jun 2, 2021
angjieli added a commit that referenced this pull request Jun 3, 2021
angjieli added a commit that referenced this pull request Jun 3, 2021
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.

Scaffold.bottomSheet throws a duplicate GlobalKey when being quickly removed/added to the Scaffold

5 participants