Skip to content

Improve docs on MediaQuery: highContrast, invertColors and disableAnimations#186614

Merged
auto-submit[bot] merged 8 commits into
flutter:masterfrom
AbdeMohlbi:issue_78323
Jun 11, 2026
Merged

Improve docs on MediaQuery: highContrast, invertColors and disableAnimations#186614
auto-submit[bot] merged 8 commits into
flutter:masterfrom
AbdeMohlbi:issue_78323

Conversation

@AbdeMohlbi

@AbdeMohlbi AbdeMohlbi commented May 16, 2026

Copy link
Copy Markdown
Member

Fixes #78323

Pre-launch Checklist

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

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label May 16, 2026
@github-actions github-actions Bot added the framework flutter/packages/flutter repository. See also f: labels. label May 16, 2026

@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 enhances the documentation for invertColors, highContrast, and disableAnimations within MediaQueryData to clarify platform-specific behaviors and framework interactions. Review feedback identifies potential issues with documentation links that cannot be resolved across library boundaries, suggests clarifying that AnimationController relies on global platform settings rather than the MediaQueryData property, and notes a minor indentation inconsistency in the documentation.

Comment thread packages/flutter/lib/src/widgets/media_query.dart Outdated
Comment thread packages/flutter/lib/src/widgets/media_query.dart Outdated
/// * [AnimationController], which adjusts its playback behavior based on this setting.
/// * [AnimationBehavior], which defines how animations behave when this setting is active.
/// * [dart:ui.AccessibilityFeatures.disableAnimations], the underlying primitive
/// flag provided by the platform.

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.

medium

The indentation of this wrapped line in the documentation list is inconsistent with the surrounding style. It should be indented by four spaces to align with the start of the text in the preceding line.

  ///    flag provided by the platform.
References
  1. Documentation should follow consistent formatting and indentation for readability. (link)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

interesting then some other places are not properly formatted

@github-actions github-actions Bot removed the CICD Run CI/CD label May 16, 2026
@Piinks Piinks self-requested a review May 26, 2026 23:00
Comment thread packages/flutter/lib/src/widgets/media_query.dart Outdated
Comment thread packages/flutter/lib/src/widgets/media_query.dart Outdated
Comment thread packages/flutter/lib/src/widgets/media_query.dart
Comment thread packages/flutter/lib/src/widgets/media_query.dart Outdated
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label May 28, 2026
@AbdeMohlbi AbdeMohlbi requested a review from Piinks May 28, 2026 10:52
Comment thread packages/flutter/lib/src/widgets/media_query.dart Outdated
@github-actions github-actions Bot removed the CICD Run CI/CD label May 28, 2026
Piinks
Piinks previously approved these changes May 28, 2026

@Piinks Piinks 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!

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label May 28, 2026
@Piinks Piinks added the autosubmit Merge PR when tree becomes green via auto submit App label May 28, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 28, 2026
@auto-submit

auto-submit Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/flutter/186614, Failed to enqueue flutter/flutter/186614 with HTTP 400: Pull request New changes require approval from someone other than Piinks because they were the last pusher..

@AbdeMohlbi AbdeMohlbi added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 2, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 2, 2026
@auto-submit

auto-submit Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/flutter/186614, Failed to enqueue flutter/flutter/186614 with HTTP 400: Pull request New changes require approval from someone other than Piinks because they were the last pusher..

@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 2, 2026
@AbdeMohlbi AbdeMohlbi added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App and removed autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD labels Jun 2, 2026
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 8, 2026
@Piinks Piinks added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 9, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 9, 2026
@auto-submit

auto-submit Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/flutter/186614, Failed to enqueue flutter/flutter/186614 with HTTP 400: Pull request New changes require approval from someone other than Piinks because they were the last pusher..

@elliette elliette left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Once small suggestion otherwise looks good!

Comment thread packages/flutter/lib/src/widgets/media_query.dart Outdated
@AbdeMohlbi AbdeMohlbi requested review from Piinks and elliette June 10, 2026 15:47
@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 10, 2026
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 10, 2026
@Piinks Piinks added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 10, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue Jun 10, 2026
Merged via the queue into flutter:master with commit 4b7590a Jun 11, 2026
93 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 11, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Jun 11, 2026
flutter/flutter@c0a1129...8bdce07

2026-06-11 bernaferrari2@gmail.com Make shape border lerp symmetric (flutter/flutter#187282)
2026-06-11 matt.kosarek@canonical.com Sized to content for regular and dialog windows on win32 (flutter/flutter#186829)
2026-06-11 jason-simmons@users.noreply.github.com Ensure that directory names are typed as strings in the CIPD package YAML file generated by merge_and_upload_debug_symbols.py (flutter/flutter#187813)
2026-06-11 stuartmorgan@google.com Add core-packages to ecosystem triage (flutter/flutter#187796)
2026-06-11 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from 8azSyvz57mKcPqTwk... to 2KosSR4ONUjIB7tP_... (flutter/flutter#187842)
2026-06-11 ishaquehassan@gmail.com Document moveStep direction on WidgetController.dragUntilVisible (flutter/flutter#186943)
2026-06-11 ahmedsameha1@gmail.com Add more 0x0 size tests part 11 (flutter/flutter#186822)
2026-06-10 kumarshivam72@gmail.com Fix ShapeDecoration.lerp crash when interpolating between gradient and color (flutter/flutter#187368)
2026-06-10 codedoctor@linwood.dev Reland "Add support for stylus buttons" (flutter/flutter#187629)
2026-06-10 tanyabouman@gmail.com Api docs: typo fix in Navigator (flutter/flutter#187572)
2026-06-10 engine-flutter-autoroll@skia.org Roll Packages from bd297cf to 1b56cde (4 revisions) (flutter/flutter#187784)
2026-06-10 116356835+AbdeMohlbi@users.noreply.github.com Improve docs on MediaQuery: highContrast, invertColors and disableAnimations (flutter/flutter#186614)
2026-06-10 matt.boetger@gmail.com [Android] Test to verify AnnounceSemanticsEvent deprecation warning on API 36 (flutter/flutter#187754)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC louisehsu@google.com,stuartmorgan@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
via-guy pushed a commit to via-guy/flutter that referenced this pull request Jun 26, 2026
…mations (flutter#186614)

Fixes flutter#78323

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [AI contribution guidelines] and understand my
responsibilities, or I am not using AI tools.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] 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].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

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

If this change needs to override an active code freeze, provide a
comment explaining why. The code freeze workflow can be overridden by
code reviewers. See pinned issues for any active code freezes with
guidance.

**Note**: The Flutter team is currently trialing the use of [Gemini Code
Assist for
GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).
Comments from the `gemini-code-assist` bot should not be taken as
authoritative feedback from the Flutter team. If you find its comments
useful you can update your code accordingly, but if you are unsure or
disagree with the feedback, please feel free to wait for a Flutter team
member's review for guidance on which automated comments should be
addressed.

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[AI contribution guidelines]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md

---------

Co-authored-by: Kate Lovett <katelovett@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve docs on MediaQuery: highContrast, invertColors and disableAnimations

4 participants