-
Notifications
You must be signed in to change notification settings - Fork 6k
Add Support for autofill with textContentType #13878
Conversation
textContentType implentation need to bu updated in text_input.dart in Flutter SDK
|
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
1 similar comment
|
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
@googlebot I signed it! |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
1 similar comment
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
|
Some error, wait a minute. |
|
So how's autofill implementation going? |
shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm
Outdated
Show resolved
Hide resolved
justinmc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick review. It seems like this may be still in progress, so sorry for the early feedback. Feel free to mention me for help or review later. Thanks for taking this on!
| static UITextContentType ToUITextContentType(NSDictionary* type){ | ||
| NSString* contentType = type[@"textType"]; | ||
| if ([contentType isEqualToString:@"TextContent.username"]) | ||
| return UITextContentTypeUsername; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above 3 lines have indentation problems. Indentation should be 2 spaces.
shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm
Outdated
Show resolved
Hide resolved
shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm
Outdated
Show resolved
Hide resolved
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
1 similar comment
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
|
@googlebot I consent |
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
1 similar comment
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
Evsio0n
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You needs to sign Google CLA at https://cla.developers.google.com/
|
@googlebot I fixed it. |
|
@Evsio0n it looks like these two commits: 785699a and 7ca9e4e are created under a different email address (that hasn't signed the CLA). Could you rebase these commits using the email address that you signed the CLA with? |
Update FlutterTextInputPlugin.mm flutter ci formatting fix syntax error Set limitation to iOS 11 due to UITextContentTypeUsername is Up at iOS 11 modified: shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm Set limitation to iOS 11 due to UITextContentTypeUsername is Up at iOS 11 修改: shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
1 similar comment
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Fixed, Thanks. |
|
@Evsio0n you might also want to fix the formatting issues mentioned in https://cirrus-ci.com/task/6514581622489088 |
| This file is to make ios 11 or higher device using autofill | ||
| Reference to github.com/flutter/flutter/issues/33040 | ||
| **/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this doc comment since it doesn't add anything that the reader can't look up from UITextContentType or the commit comment from git blame.
| _enablesReturnKeyAutomatically = NO; | ||
| _keyboardAppearance = UIKeyboardAppearanceDefault; | ||
| _keyboardType = UIKeyboardTypeDefault; | ||
| if(@available iOS (11.0,*)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The syntax above should be: if (@available(iOS 11.0, *))
|
|
||
| - (void)setTextInputClient:(int)client withConfiguration:(NSDictionary*)configuration { | ||
| NSDictionary* inputType = configuration[@"inputType"]; | ||
| if(@available iOS (11.0,*)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The syntax above should be: if (@available(iOS 11.0, *))
| } | ||
|
|
||
| _activeView.keyboardType = ToUIKeyboardType(inputType); | ||
| if(@available iOS (11.0,*)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The syntax above should be: if (@available(iOS 11.0, *))
| - (void)setTextInputClient:(int)client withConfiguration:(NSDictionary*)configuration { | ||
| NSDictionary* inputType = configuration[@"inputType"]; | ||
| if(@available iOS (11.0,*)) | ||
| NSDictionary* contentType = configuration[@"contentType"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is an unused variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable is referred by flutter/flutter#33040
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is an unused variable.
Maybe I will check CI After Exam Month
|
Thanks for your contribution. Since we haven't seen any further progress on this, and it currently does not compile, we're going to reluctantly close this PR for now, but if you get time to address the comments, we'd be more than happy to take a look at a new PR. If you do send a new PR, it would be very useful to reference this one in the description in order to help reviewers see the previous context. |
textContentType implentation need to be updated in text_input.dart in Flutter SDK