-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Cupertino picker tap #110733
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
Cupertino picker tap #110733
Conversation
Also correctly apply the paint transform (x offset was not applied)
|
This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
Thank you for your contribution. Are you still working on this? Feel free to reach out on Discord if you need help finishing this. |
|
This fix would enable us to close bdlukaa/fluent_ui#6. Looking foward to it! Thanks :) |
|
Thank you for your contribution! I'm going to close this PR for now to unblock the queue, but feel free to reopen if you want to continue working on this. |
|
@victorsanni feel free! |
Finishes the work started by @Kavantix in #110733. Fixes #24089. Before: https://github.com/user-attachments/assets/7ca0d346-7538-44a0-b0b2-41cf96eee6eb After: https://github.com/user-attachments/assets/8da91188-28a0-4738-a216-e03946f00284 Native picker: https://github.com/user-attachments/assets/8662b3c0-0443-4f8d-818b-cabd97d37de8
Finishes the work started by @Kavantix in flutter#110733. Fixes flutter#24089. Before: https://github.com/user-attachments/assets/7ca0d346-7538-44a0-b0b2-41cf96eee6eb After: https://github.com/user-attachments/assets/8da91188-28a0-4738-a216-e03946f00284 Native picker: https://github.com/user-attachments/assets/8662b3c0-0443-4f8d-818b-cabd97d37de8
Adds support for tapping on items in a cupertino picker
To do so I simply implemented hit testing for the ListWheelScrollView and added a gesture recogniser around all the children.
Drag gestures in the date_picker tests are failing because they need to be converted to custom gestures (the drag is not triggered because of the
DragStartBehaviour.start).I can convert those but would first like some feedback on the approach before sinking in that time.
Fixes #38803
Fixes #24089
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.