Skip to content

Fix disallowIndicator for RefreshIndicator - #106831

Merged
fluttergithubbot merged 2 commits into
flutter:masterfrom
Piinks:disallow
Jul 7, 2022
Merged

fluttergithubbot merged 2 commits into
flutter:masterfrom
Piinks:disallow

Conversation

@Piinks

@Piinks Piinks commented Jun 29, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #106832

This updates the RefreshIndicator to call disallowIndicator instead of disallowGlow, in order to account for more than one indicator (like the Material3 stretch indicator).

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 p: material_ui material_ui package in flutter/packages f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels. labels Jun 29, 2022

@TahaTesser TahaTesser 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.

LGTM with nit.

refreshCalled = false;
bool stretchAccepted = true;
ScrollNotification? lastNotification;

@TahaTesser TahaTesser Jul 6, 2022 •

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.

A blank line here but it's not in the first test.
To be consistent please add the same blank in the first one.

Comment thread packages/flutter/test/material/refresh_indicator_test.dart
@Piinks Piinks added autosubmit Merge PR when tree becomes green via auto submit App waiting for tree to go green labels Jul 6, 2022
@fluttergithubbot
fluttergithubbot merged commit 1c43399 into flutter:master Jul 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 7, 2022
camsim99 pushed a commit to camsim99/flutter that referenced this pull request Aug 10, 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. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RefreshIndicator does not disallow stretch indicator

3 participants