Skip to content

Put stretch indicator behind useMaterial3 flag - #100234

Merged
Piinks merged 3 commits into
flutter:masterfrom
Piinks:m3Flag
Mar 21, 2022
Merged

Piinks merged 3 commits into
flutter:masterfrom
Piinks:m3Flag

Conversation

@Piinks

@Piinks Piinks commented Mar 16, 2022 •

Copy link
Copy Markdown
Contributor

This updates the implementation of the stretching overscroll indicator to be enabled by the useMaterial3 flag.
It deprecates the previous androidOverscrollIndicator property, as part of unifying M3 features and making its way to the new default.

Related to:

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.

@Piinks
Piinks requested a review from darrenaustin March 16, 2022 16:58
@Piinks Piinks added framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages labels Mar 16, 2022
@flutter-dashboard flutter-dashboard Bot added the f: scrolling Viewports, list views, slivers, etc. label Mar 16, 2022

@darrenaustin darrenaustin 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. Awesome Kate. I as just about to ask you what I needed to do for this 😄.

Can you also add a comment to the docs for useMaterial3 to indicate that it turns this feature on for Android platforms? Thx.

final AndroidOverscrollIndicator indicator = _androidOverscrollIndicator
late final AndroidOverscrollIndicator indicator;
if (Theme.of(context).useMaterial3) {
indicator = AndroidOverscrollIndicator.stretch;

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.

This only applies to the Android platform, correct? We don't perform the overscroll on anything else?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That is correct!

@skia-gold

Copy link
Copy Markdown

Gold has detected about 6 new digest(s) on patchset 2.
View them at https://flutter-gold.skia.org/cl/github/100234

@skia-gold

Copy link
Copy Markdown

Gold has detected about 1 new digest(s) on patchset 3.
View them at https://flutter-gold.skia.org/cl/github/100234

@Piinks
Piinks merged commit 5bc9340 into flutter:master Mar 21, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 21, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 21, 2022
@darrenaustin darrenaustin mentioned this pull request Mar 22, 2022
63 of 70 tasks
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
@guidezpl guidezpl changed the title Put stretch indicator behind m3 flag Put stretch indicator behind useMaterial3 flag May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants