Skip to content

Conversation

@RamonFarizel
Copy link
Contributor

@RamonFarizel RamonFarizel commented Oct 1, 2024

This PR adds code samples regarding the CupertinoMagnifier and CupertinoTextMagnifier

Fixes #154439

Pre-launch Checklist

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

@github-actions github-actions bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. f: cupertino flutter/packages/flutter/cupertino repository d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos labels Oct 1, 2024
@victorsanni
Copy link
Contributor

Code samples must have accompanying tests.

Copy link
Member

@TahaTesser TahaTesser left a comment

Choose a reason for hiding this comment

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

Thanks for contributing. Great start!

RamonFarizel and others added 12 commits October 8, 2024 18:48
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
…dart

Co-authored-by: Taha Tesser <tessertaha@gmail.com>
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
…dart

Co-authored-by: Taha Tesser <tessertaha@gmail.com>
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
@RamonFarizel
Copy link
Contributor Author

I have added a few tests, not sure if I can go deeper than that.
Let me know your thoughts.
Thanks in advance.

Copy link
Contributor

@bleroux bleroux left a comment

Choose a reason for hiding this comment

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

Thanks for this great addition!

I spotted some formatting issues and small typos.

),
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
Copy link
Contributor

Choose a reason for hiding this comment

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

From line 42 to 75 there is too much indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi, Bleroux.
I'm having too many formatting issues. How can I improve on it?
Can I fix those issues simply by using the IDE's 'Format Document' feature?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @RamonFarizel ,

unfortunately auto format is not an option on the Flutter repo for the moment (it might be in 2025), but for the moment, according to the contribution guide, readability is key and can't be achieved with current autoformat tool (it will be soon 🤞).

In that particular case, from your IDE, you can just select lines 42 to 75 and hit shift+tab to remove one level of indentation.

I'm having too many formatting issues. How can I improve on it?

Do you mean for this PR or for other flutter/flutter contributions?
For this PR, as far as I can tell this indentation issue is the only remaining formatting issue.
(On the test side, it looks like you used autoformat, I will suggest some small changes later to make things a little more readable).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good to know! Thanks for your answer!
Yeah, I was using auto format.
My question was focused on future contributions. I want to ensure that I don't repeat these mistakes in the future.

RamonFarizel and others added 2 commits October 9, 2024 18:26
@RamonFarizel RamonFarizel requested a review from bleroux October 9, 2024 22:03
@RamonFarizel
Copy link
Contributor Author

Linux docs_test is failing. Do you know why?

RamonFarizel and others added 5 commits October 10, 2024 14:21
….dart

Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
….dart

Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
….dart

Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
…dart

Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
…dart

Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
Copy link
Member

@TahaTesser TahaTesser left a comment

Choose a reason for hiding this comment

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

LGTM with minor nit

@TahaTesser TahaTesser added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 11, 2024
@auto-submit auto-submit bot merged commit 51aa2f5 into flutter:master Oct 11, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 12, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 12, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 12, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 17, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 12, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 6, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CupertinoMagnifier/CupertinoTextMagnifier is missing example/accompanying test

4 participants