Skip to content

[material_ui] Port flutter/flutter #190810 fix dismissal near minimum extent when shouldCloseOnMinExtent - #12545

Open
kirya355 wants to merge 1 commit into
flutter:mainfrom
kirya355:decoupling-port-190810
Open

[material_ui] Port flutter/flutter #190810 fix dismissal near minimum extent when shouldCloseOnMinExtent#12545
kirya355 wants to merge 1 commit into
flutter:mainfrom
kirya355:decoupling-port-190810

Conversation

@kirya355

Copy link
Copy Markdown

This PR ports flutter/flutter#190810 by @kirya355 from flutter/flutter to flutter/packages.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the bottom sheet dismissal logic in bottom_sheet.dart and scaffold.dart to check if the difference between the current extent and the minimum extent is within precisionErrorTolerance, rather than using direct equality. It also adds unit tests to verify this behavior and a pending changelog entry. The review feedback suggests removing the .abs() call from the tolerance check to ensure the bottom sheet still closes if the extent is dragged or animated below the minimum extent.

Comment thread packages/material_ui/lib/src/bottom_sheet.dart
Comment thread packages/material_ui/lib/src/scaffold.dart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p: material_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant