Skip to content

Conversation

@thkim1011
Copy link
Contributor

@thkim1011 thkim1011 commented Jun 22, 2023

This PR changes the example app into a custom scrollview with three slivers. The middle sliver has a nested scrollview of height 300 and only this nested sliver can trigger the refresh indicator.

Fixes #116237.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@thkim1011 thkim1011 requested a review from Piinks June 22, 2023 21:16
@github-actions github-actions bot added d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos documentation c: contributor-productivity Team-specific productivity, code health, technical debt. labels Jun 22, 2023
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.

Since most folks view this on the web in a desktop environment, they wont actually be able to pull it down as it says. Can you add in MaterialApp for scrollBehavior: MaterialScrollBehavior().copyWith(dragDevices: PointerDeviceKind.values.toSet())? That way no matter where folks are checking out this example, they will be able to drag on it. :)

//
// Here setting `notification.depth == 1` triggers the refresh indicator
// when overscrolling the nested scroll view.
notificationPredicate: (ScrollNotification notification) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a comment just above this, can you adjust it to

// By default this is set to `notification.depth == 0`, which ensures
// the only the scroll notifications from the first scroll view are listened to.

@thkim1011 thkim1011 requested a review from Piinks June 26, 2023 20:11
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 - this will need a test exemption from Hixie though.

@Hixie
Copy link
Contributor

Hixie commented Jul 11, 2023

test-exempt: code refactor with no semantic change

@Piinks Piinks added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 11, 2023
@auto-submit auto-submit bot merged commit 018fa8c into flutter:master Jul 11, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 12, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 12, 2023
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Jul 12, 2023
Roll Flutter from 3ec96a8 to 544d30d (66 revisions)

flutter/flutter@3ec96a8...544d30d

2023-07-12 [email protected] Roll Packages from 188a846 to 2508714 (14 revisions) (flutter/flutter#130418)
2023-07-12 [email protected] Update `RadioListTile` tests format for M2/M3 (flutter/flutter#130391)
2023-07-12 [email protected] Roll Flutter Engine from d68ea304eeda to 5c887028810d (2 revisions) (flutter/flutter#130413)
2023-07-12 [email protected] Roll Flutter Engine from c7317a58466e to d68ea304eeda (1 revision) (flutter/flutter#130410)
2023-07-12 [email protected] Roll Flutter Engine from 3dbe7dbeb5d4 to c7317a58466e (1 revision) (flutter/flutter#130402)
2023-07-12 [email protected] Roll Flutter Engine from 73093fdd77c3 to 3dbe7dbeb5d4 (1 revision) (flutter/flutter#130399)
2023-07-12 [email protected] Roll Flutter Engine from 29c5c41eeb19 to 73093fdd77c3 (2 revisions) (flutter/flutter#130398)
2023-07-12 [email protected] Roll Flutter Engine from 3482e05776a7 to 29c5c41eeb19 (1 revision) (flutter/flutter#130393)
2023-07-12 [email protected] Roll Flutter Engine from 7de68c62742d to 3482e05776a7 (2 revisions) (flutter/flutter#130390)
2023-07-12 [email protected] Make new issue template for 1P package (flutter/flutter#130065)
2023-07-12 [email protected] Roll Flutter Engine from 1b44d7ee1a60 to 7de68c62742d (4 revisions) (flutter/flutter#130384)
2023-07-12 [email protected] Roll Flutter Engine from e109a3c0c347 to 1b44d7ee1a60 (3 revisions) (flutter/flutter#130380)
2023-07-12 [email protected] Roll Flutter Engine from d00590fde18c to e109a3c0c347 (1 revision) (flutter/flutter#130371)
2023-07-12 [email protected] Roll Flutter Engine from 875d87e02276 to d00590fde18c (5 revisions) (flutter/flutter#130369)
2023-07-12 [email protected] Enable not GCed leak tracking. (flutter/flutter#130159)
2023-07-11 [email protected] Roll Flutter Engine from e2df01610fb3 to 875d87e02276 (3 revisions) (flutter/flutter#130359)
2023-07-11 [email protected] autocomplete: Remove mistaken paragraph in `onSelected` doc (flutter/flutter#130190)
2023-07-11 [email protected] Roll Flutter Engine from 59f234645dd2 to e2df01610fb3 (3 revisions) (flutter/flutter#130357)
2023-07-11 [email protected] Refactor refresh_indicator.1.dart to not use shrinkwrap (flutter/flutter#129377)
2023-07-11 [email protected] Links in `material` library docs are outdated (flutter/flutter#129891)
2023-07-11 [email protected] Roll Flutter Engine from afee1db31e5e to 59f234645dd2 (2 revisions) (flutter/flutter#130352)
2023-07-11 [email protected] Roll Flutter Engine from 75ada1bdf9fd to afee1db31e5e (1 revision) (flutter/flutter#130349)
2023-07-11 [email protected] Upgrade leak_tracker to 7.0.6. (flutter/flutter#130346)
2023-07-11 [email protected] Roll Flutter Engine from 0011db79d41f to 75ada1bdf9fd (2 revisions) (flutter/flutter#130345)
2023-07-11 [email protected] Roll pub packages (flutter/flutter#130289)
2023-07-11 [email protected] `DropdownMenu` can be expanded to its parent size (flutter/flutter#129753)
2023-07-11 [email protected] Roll Packages from 4469c5e to 188a846 (6 revisions) (flutter/flutter#130340)
2023-07-11 [email protected] Roll Flutter Engine from d75c70870f86 to 0011db79d41f (2 revisions) (flutter/flutter#130337)
2023-07-11 [email protected] Roll Flutter Engine from 5e9f0d61a42a to d75c70870f86 (1 revision) (flutter/flutter#130332)
2023-07-11 [email protected] Roll Flutter Engine from 417c50199e14 to 5e9f0d61a42a (1 revision) (flutter/flutter#130330)
2023-07-11 [email protected] Roll Flutter Engine from bfda8f173fea to 417c50199e14 (2 revisions) (flutter/flutter#130324)
2023-07-11 [email protected] Add `Badge` widget to `NavigationBar` and `NavigationRail` examples (flutter/flutter#129834)
2023-07-11 [email protected] Roll Flutter Engine from 2139c8a90822 to bfda8f173fea (2 revisions) (flutter/flutter#130321)
2023-07-11 [email protected] Update labeler for recent changes (flutter/flutter#130168)
2023-07-11 [email protected] fix: `ExpansionTileTheme.shape` assignment in `ExpansionTile` (flutter/flutter#127749)
2023-07-11 [email protected] Roll Flutter Engine from 12aa98177cf2 to 2139c8a90822 (2 revisions) (flutter/flutter#130316)
2023-07-11 [email protected] Roll Flutter Engine from 767f2fb8ab03 to 12aa98177cf2 (1 revision) (flutter/flutter#130315)
2023-07-11 [email protected] Implement preferPaintInterior correctly for _CompoundBorder (flutter/flutter#129851)
2023-07-11 [email protected] Roll Flutter Engine from 153d9e1d598a to 767f2fb8ab03 (1 revision) (flutter/flutter#130313)
2023-07-11 [email protected] Roll Flutter Engine from 2c82dd7ec54b to 153d9e1d598a (2 revisions) (flutter/flutter#130311)
2023-07-11 [email protected] Roll Flutter Engine from 312e4813a880 to 2c82dd7ec54b (1 revision) (flutter/flutter#130309)
2023-07-11 [email protected] Roll Flutter Engine from 95316fbc25a7 to 312e4813a880 (2 revisions) (flutter/flutter#130307)
2023-07-11 [email protected] Add Linux implementation of the platform view example (flutter/flutter#123731)
2023-07-11 [email protected] Roll Flutter Engine from daecd616f5a7 to 95316fbc25a7 (4 revisions) (flutter/flutter#130305)
2023-07-11 [email protected] Roll Flutter Engine from 2a0dd9d2f28e to daecd616f5a7 (3 revisions) (flutter/flutter#130298)
2023-07-10 [email protected] Roll Flutter Engine from 7d054abf842c to 2a0dd9d2f28e (4 revisions) (flutter/flutter#130296)
...
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 c: contributor-productivity Team-specific productivity, code health, technical debt. d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't use shrink wrap in our samples

3 participants