Skip to content

Update MediaQueryData docs for devicePixelRatio overriding#187542

Open
LongCatIsLooong wants to merge 2 commits into
flutter:masterfrom
LongCatIsLooong:media-query-docs
Open

Update MediaQueryData docs for devicePixelRatio overriding#187542
LongCatIsLooong wants to merge 2 commits into
flutter:masterfrom
LongCatIsLooong:media-query-docs

Conversation

@LongCatIsLooong
Copy link
Copy Markdown
Contributor

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 Jun 4, 2026
@github-actions github-actions Bot added the framework flutter/packages/flutter repository. See also f: labels. label Jun 4, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

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 adds documentation to MediaQueryData.devicePixelRatio explaining its relationship with FlutterView and the behavior when overridden. Feedback points out a typo in the added documentation, where 'encompasing' should be corrected to 'encompassing'.

/// be a power of two. Indeed, it might not even be an integer. For example,
/// the Nexus 6 has a device pixel ratio of 3.5.
///
/// Typically, this property reflects the pixel ratio of the encompasing
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

There is a typo in the word "encompasing". It should be spelled "encompassing".

  /// Typically, this property reflects the pixel ratio of the encompassing

@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 4, 2026
@LongCatIsLooong LongCatIsLooong added the CICD Run CI/CD label Jun 4, 2026
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.

1 participant