Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Loupe Android + iOS #106507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Loupe Android + iOS #106507

wants to merge 3 commits into from

Conversation

antholeole
Copy link
Contributor

Loupe! Design doc: https://flutter.dev/go/text-editing-magnifying-glass

List which issues are fixed by this PR. You must list at least one issue.

If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].

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.

@override
void updateRenderObject(
BuildContext context, covariant RenderProxyBox renderObject) {
(renderObject as _RenderMagnification)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since Magnifier should be public, but _RenderMagnification should not be, this will trigger the "no private members in public API lint`. To workaround, cast the renderObject to it's private subtype.

Prior art

/// [Magnifier] may have a [child], which will be drawn over the lens. This is useful
/// for overlays, like tinting the lens.
///
/// Some caveats for using the magnifier:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These caveats seem a little extreme. Maybe we need to talk about not including it in the public API because it might be too hard to use.................................

@goderbauer goderbauer added the framework flutter/packages/flutter repository. See also f: labels. label Jun 29, 2022
@antholeole
Copy link
Contributor Author

Closing in favor of #107477, which is a branch cherry picked out of this one to not contain Portals or context menu changes

@antholeole antholeole closed this Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants