-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Editable text sends enableInteractiveSelection to text input client #100649
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
Conversation
| this.autofillConfiguration = AutofillConfiguration.disabled, | ||
| this.enableIMEPersonalizedLearning = true, | ||
| this.enableDeltaModel = false, | ||
| }) : assert(inputType != null), |
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.
these are all non-null type, these checks are redundant
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.
Good point, I thought that the compiler wouldn't let you do this, but I guess it will. I'll keep an eye out for other places that can be cleaned up like this.
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 it will still be useful for user that has not migrate to null safety, so I will revert this change
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.
Ah that's right. Sounds good.
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.
LGTM 👍
Just some docs nits below.
| this.autofillConfiguration = AutofillConfiguration.disabled, | ||
| this.enableIMEPersonalizedLearning = true, | ||
| this.enableDeltaModel = false, | ||
| }) : assert(inputType != null), |
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.
Good point, I thought that the compiler wouldn't let you do this, but I guess it will. I'll keep an eye out for other places that can be cleaned up like this.
| /// {@endtemplate} | ||
| final bool enableSuggestions; | ||
|
|
||
| /// Whether to a user can change its selection. |
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.
Nit: "Whether a user can change the selection."
| /// Whether to a user can change its selection. | ||
| /// | ||
| /// This flag only affects iOS VoiceOver. On Android Talkback, the selection | ||
| /// change is sent through semantics actions and are directly disabled from |
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.
What is "directly disabled" here, the selection change? If so then "are" should be "is".
pipes enableInteractiveSelection to the engine side
engine part flutter/engine#32223
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.