-
Notifications
You must be signed in to change notification settings - Fork 29.1k
enterText
to move the caret to the end
#79506
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
enterText
to move the caret to the end
#79506
Conversation
Dependent on #79489 |
Gold has detected about 3 untriaged digest(s) on patchset 3. |
enterText
to have trailing caretenterText
to move the caret to the end
@@ -848,18 +848,24 @@ void main() { | |||
); | |||
|
|||
testWidgets('cursor layout has correct width', (WidgetTester tester) async { | |||
final TextEditingController controller = TextEditingController.fromValue( |
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 golden tests were drawing the caret for position -1.
If you can land this without breaking the world then I am supportive, LGTM. Amusingly it'll conflict with two separate PRs I'm writing right now but luckily it won't do so in a complicated way and those two PRs are already conflicting with each other so whatever. ;-) |
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.
If this requires google3 changes then we should do a migration guide.
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 👍
I feel like I have run into this before, good call.
/// Give the text input widget specified by [finder] the focus and | ||
/// enter [text] as if it been provided by the onscreen keyboard. | ||
/// Give the text input widget specified by [finder] the focus, replace its | ||
/// content with [text], as if it been provided by the onscreen keyboard. |
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:
- focus, replace its content with [text], as if it been
+ focus and replace its content with [text], as if it had been
…verted in (flutter#79654) This reverts commit bf6e38d.
Fixes #79494. Running TGP to see how breaking this is. result(internal link).
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.