Skip to content

Added keyboardType in CupertinoSearchTextField#83994

Merged
pedromassango merged 25 commits intoflutter:masterfrom
Hardeepsingh980:master
Oct 6, 2022
Merged

Added keyboardType in CupertinoSearchTextField#83994
pedromassango merged 25 commits intoflutter:masterfrom
Hardeepsingh980:master

Conversation

@Hardeepsingh980
Copy link
Contributor

@Hardeepsingh980 Hardeepsingh980 commented Jun 4, 2021

Hi, This PR adds keyboardType parameter to CupertinoSearchTextField.

fixes #83992

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 feature I am adding, or Hixie said the PR is test-exempt.
  • All existing and new tests are passing.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard bot added f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels. labels Jun 4, 2021
@google-cla
Copy link

google-cla bot commented Jun 4, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added the cla: no label Jun 4, 2021
@Hardeepsingh980
Copy link
Contributor Author

@googlebot I signed it!

@googlebot I signed it!

@google-cla google-cla bot added cla: yes and removed cla: no labels Jun 4, 2021
Copy link
Member

@pedromassango pedromassango left a comment

Choose a reason for hiding this comment

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

Hello @Hardeepsingh980

Thanks for this PR. This change requires tests to make sure it does not break in the future.

@Hardeepsingh980
Copy link
Contributor Author

Hardeepsingh980 commented Jun 7, 2021

Hello @Hardeepsingh980

Thanks for this PR. This change requires tests to make sure it does not break in the future.

Hi Could you please help me write them as i have no experience writings tests in flutter. Also i looked into TextField test, test for keyboardType are also missing from their. https://github.com/flutter/flutter/blob/master/packages/flutter/test/cupertino/text_field_test.dart. There are no tests for keyboardType.

@Piinks Piinks added a: text input Entering text in a text field or keyboard related problems c: new feature Nothing broken; request for a new capability labels Jun 10, 2021
Copy link
Member

@pedromassango pedromassango left a comment

Choose a reason for hiding this comment

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

So sorry for the late feedback. The changes looks good :)

This should be good to go after those small suggestions.

@flutter-dashboard
Copy link

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Hixie
Copy link
Contributor

Hixie commented Dec 9, 2021

@Hardeepsingh980 Is this a PR you are still interested in working on?

@Hardeepsingh980
Copy link
Contributor Author

Hey @justinmc , I have made the changes you suggested.

@appinteractive
Copy link

Hey what’s the status on that? Seems long pending. 😞

@Hardeepsingh980
Copy link
Contributor Author

Hey @appinteractive , I have made all the changes, according to the reviewers and still this isn't merged, no idea why?

@appinteractive
Copy link

@Hardeepsingh980 Seems like some tests are failing aren't they?

@justinmc could you assist or give a hint what needs to be done!?

@guidezpl guidezpl removed the cla: yes label May 1, 2022
@Hixie
Copy link
Contributor

Hixie commented Jul 12, 2022

@Hardeepsingh980 Thanks for the contribution! It looks like some tests are failing. If you would like to land this PR we'll need to make sure the tests pass first. If you need some help you can try asking in #hackers-new on our Discord (see the contributing guidelines below for a link to the Discord server).

@Hixie
Copy link
Contributor

Hixie commented Sep 13, 2022

@Hardeepsingh980 Let us know if you're interested in fixing the test failures (you can ping me, Hixie, on our Discord, if you need help). Otherwise we can close this PR for now and leave a comment on the relevant issue for the next person to take it over. Thanks in advance!

@Hardeepsingh980
Copy link
Contributor Author

@pedromassango can you please have a look.

Copy link
Contributor

@justinmc justinmc 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 a small nit on the docs.


/// The keyboard type for this search field.
///
/// Defaults to TextInputType.text.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Use square brackets so this gets linked in the docs: [TextInputType.text].

Copy link
Member

@pedromassango pedromassango left a comment

Choose a reason for hiding this comment

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

LGTM

@Hardeepsingh980
Copy link
Contributor Author

@pedromassango @justinmc if everything looks good, can we please merge this PR?

@pedromassango pedromassango merged commit 5de0918 into flutter:master Oct 6, 2022
@thecalamiity
Copy link
Contributor

Looks like Justin’s comment was not addressed

@justinmc
Copy link
Contributor

justinmc commented Oct 6, 2022

@mrbirb Thanks for noticing that and for opening a PR to address it.

@pedromassango
Copy link
Member

My bad. Was it addressed already? 🙈

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 c: new feature Nothing broken; request for a new capability 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.

Add Keyboard Type in CupertinoSearchTextField

8 participants