-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
DropdownButtonFormField is not re-rendered after value is changed programmatically #56898
Comments
I check version 1.13.4 and this actually works $ flutter doctor -v [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 11.4.1) [✓] Android Studio (version 3.6) [✓] VS Code (version 1.44.2) [✓] Connected device (2 available) • No issues found! |
Reproduces with current dev |
I changed the title, because new values are set by setState, but second DropdownButtonFormField is not updated
|
You can reproduce it by tapping FAB button 10 times using the example code in this issue! |
CC @shihaohong |
I can confirm @pedromassango PR fixes my issue: #57006 |
Thanks. I'm just adding tests, before opening the PR for review |
PR moved to #56898 |
I've marked this issue as a candidate for cherry-picking into the See https://github.com/flutter/flutter/wiki/Flutter-Cherrypick-Process for more information on how the process works. |
@shihaohong Can you confirm that this is not a regretion too: #56365? Or it always behave that way?! |
@pedromassango I don't know since I haven't looked at that issue yet. However, since that issue is unrelated to this one, let's discuss that one in #56365 and not here. |
Maybe include the |
When we can expect this issue to be solved? |
This was already solved. We're just waiting to have it in the next Flutter beta release! |
Sorry, I wasn't clear, when we can expect this issue to be in stable release? thanks |
Ok. Can take time for stable channel to be released. So if you really want this, you may want to use the beta channel, once this lands to beta |
Thanks, but that is a bad idea for production app... thanks |
Please note that I never know when a stable version will be released. I just say that because this PR is not even in a beta release, so it can take time to go to stable. |
@shihaohong which commit(s) are needed for the 1.17 branch if we cherrypick this? |
@pcsosinski This is the commit needed for the cherrypick: 1aaf73f |
eng approval for cp of #57037 into 1.17 |
@lazarvgd This has landed to 1.17.2 |
removed 1.18 label as we're going to 1.19 for beta soon. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I just created a simple app in order to see what am I doing wrong
The code:
The flutter doctor -v:
The demonstration with code above:
https://streamable.com/fwwd46
EDIT:
The Expectation:
Update the first dropdown filed -> the second dropdown field will be updated automatically
The Result:
Update the first dropdown field -> the second dropdown field remains unchanged.
Please let me know if you need additional information or any further explanation regarding the problem.
Thanks
The text was updated successfully, but these errors were encountered: