Skip to content

Conversation

@Piinks
Copy link
Contributor

@Piinks Piinks commented Jun 7, 2022

Fixes #105469

This accounts for when there is more than one position is attached to the scroll controller, and only triggers a snap when appropriate.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels. labels Jun 7, 2022
@Piinks Piinks requested review from dnfield and xu-baolin June 7, 2022 23:08
@Piinks Piinks changed the title WIP - Fix DraggableScrollableSheet crash when switching out scrollables Fix DraggableScrollableSheet crash when switching out scrollables Jun 7, 2022
Comment on lines 634 to 651
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: _replacedExtent is only used here. I think it'd make sense to either inline the function here or to keep all this logic in the function.

@Piinks
Copy link
Contributor Author

Piinks commented Jun 8, 2022

I am still working with the customer on this to ensure their issue is resolved, marking WIP for now

@Piinks Piinks changed the title Fix DraggableScrollableSheet crash when switching out scrollables WIP - Fix DraggableScrollableSheet crash when switching out scrollables Jun 8, 2022
@Piinks Piinks changed the title WIP - Fix DraggableScrollableSheet crash when switching out scrollables Fix DraggableScrollableSheet crash when switching out scrollables Jun 29, 2022
@Piinks
Copy link
Contributor Author

Piinks commented Jun 29, 2022

@dnfield I've cleaned this up and confirmed with the customer that this does resolve their issue. Can you PTAL when you have a chance? Thanks!

@Piinks Piinks requested a review from dnfield June 29, 2022 23:42
Copy link
Member

@xu-baolin xu-baolin left a comment

Choose a reason for hiding this comment

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

LGTM

@xu-baolin xu-baolin added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 30, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Jun 30, 2022

  • The status or check suite tree status luci-flutter has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 30, 2022
@dnfield
Copy link
Contributor

dnfield commented Jun 30, 2022

  • The status or check suite tree status luci-flutter has failed. Please fix the issues identified (or deflake) before re-applying this label.

@keyonghan this is a bug. The auto submit bot should not be removing the label for this check.

@Piinks Piinks added waiting for tree to go green autosubmit Merge PR when tree becomes green via auto submit App labels Jun 30, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Jun 30, 2022

  • The status or check suite Linux customer_testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 30, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Jun 30, 2022

  • The status or check suite Linux customer_testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Linux customer_testing has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite customer_testing-linux has failed. Please fix the issues identified (or deflake) before re-applying this label.

@Piinks Piinks added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 30, 2022
@auto-submit auto-submit bot merged commit 90d6303 into flutter:master Jun 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 1, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 1, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DraggableScrollableSheet.snap throws for multiple ScrollPositions attached

4 participants