Skip to content

Conversation

@flutteractionsbot
Copy link

@flutteractionsbot flutteractionsbot commented Sep 6, 2024

Issue Link

#154722

Target

stable

Cherry pick PR Link

#154720

Changelog Description

The Drawer widget will snap completely open or shut after being dragged more than halfway.

Impacted Users

This affects everyone who has a Drawer widget in their mobile app.

Impact Description

Fortunately, the impact of this issue is limited to visual jank. But it will likely be widespread across app developers.

Workaround

There isn't a workaround for this.

Risk

low (This fix was merged over 2 weeks ago.)

Test Coverage

This fix is covered by the test added in the linked pull request.

Validation Steps

The fix can be verified by opening a mobile Flutter app and dragging a Drawer open or shut.

This regression is due to the fact that `animationController.isAnimating` and `animationController.status.isAnimating` sometimes return opposite values.

This PR implements & tests the bugfix, and also adds documentation to explain this behavior.

<br>

fixes flutter#153851

cc @azeunkn0wn @huycozy
@flutteractionsbot flutteractionsbot added the cp: review Cherry-picks in the review queue label Sep 6, 2024
@flutteractionsbot

This comment was marked as resolved.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. a: animation Animation APIs f: material design flutter/packages/flutter/material repository. labels Sep 6, 2024
Copy link
Contributor

@nate-thegrate nate-thegrate left a comment

Choose a reason for hiding this comment

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

Let's do it!

@itsjustkevin
Copy link
Contributor

@justinmc or @Piinks could you take a look at this cherry-pick?

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.

LGTM - thanks all!

@itsjustkevin itsjustkevin added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 11, 2024
@auto-submit auto-submit bot merged commit 98ba471 into flutter:flutter-3.24-candidate.0 Sep 11, 2024
auto-submit bot pushed a commit that referenced this pull request Sep 11, 2024
# Flutter stable 3.24.3 Framework

## Scheduled Cherrypicks
- #154380
- #154720
- #154944
@nate-thegrate nate-thegrate added cp: merged Cherry-pick has been merged to the release branch. and removed cp: review Cherry-picks in the review queue labels Sep 11, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 12, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 13, 2024
Gustl22 pushed a commit to Gustl22/flutter that referenced this pull request Nov 13, 2024
@amaralphp amaralphp mentioned this pull request Mar 27, 2025
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: animation Animation APIs autosubmit Merge PR when tree becomes green via auto submit App cp: merged Cherry-pick has been merged to the release branch. 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.

4 participants