-
Notifications
You must be signed in to change notification settings - Fork 279
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
Dragging is interrupted when call setState
on onSelect
#165
Comments
kainosk
pushed a commit
to kainosk/flutter_picker
that referenced
this issue
Feb 14, 2022
I have incorporated your modifications manually. |
yangyxd
pushed a commit
that referenced
this issue
Feb 21, 2022
ymh-matsushita
added a commit
to ymh-matsushita/flutter_picker
that referenced
this issue
Jul 4, 2024
…lutter-3.22.2-comatibility-with-fix-yangyxd#165 # Conflicts: # lib/Picker.dart
kainosk
added a commit
to kainosk/flutter_picker
that referenced
this issue
Jul 8, 2024
* fix yangyxd#165: add Key parameter to `makePicker` * accentColor -> colorScheme.secondary --------- Co-authored-by: Kainosuke OBATA <[email protected]> Co-authored-by: Tomohiro Furui <[email protected]> Co-authored-by: kainosk.obata <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When call
setState
ononSelect
callback, my dragging is interrupted.Maybe I missed something to use this picker correctly or a bug?
👇 Below is a code to reproduce the problem.
When I fix
makePicker
method like below, I can confirm expected behavior.So, I think
setState
will create new key ('ValueKey(this)') every time. And maybe this is unintentional code...?Thank you for your great package ❤️
The text was updated successfully, but these errors were encountered: