-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Add long-press-move support for text fields 2 #28242
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
5bd41fc to
c567df0
Compare
goderbauer
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.
First pass-through with just some nits.
This should probably get the label "API break". Did you already send out communications regarding this break?
goderbauer
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 if the breaking change has been communicated.
| this.onDoubleTap, | ||
| this.onLongPress, | ||
| this.onLongPressUp, | ||
| this.onLongPressStart, |
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 didn't like this suggestion? :)
Description
This is a retake of #26001
Allows the long press gesture to move after being accepted.
Use on iOS to move text field cursor. Use on Android to expand selections of words on text fields.
Left #26394 for Android
Related Issues
Fixes #20693.
Checklist
Before you create this PR confirm that it meets all requirements listed below
by checking the relevant checkboxes (
[x]). This will ensure a smooth and quickreview process.
submitting PRs.
Test Coverage).
///).flutter analyze --flutter-repo) does not report anyproblems on my PR.
Features we expect every widget to implement.
Breaking Change
Does your PR require Flutter developers to manually update their apps
to accommodate your change?
LongPressGestureRecognizers will start to emit onLongPressUp even after the gesture moved after the long press is accepted by default unless a different postAcceptSlopTolerance value is given in the constructor.