Repository navigation
Unable to set initial value to DropdownButtonFieldForm [1.17.0] #56716
Copy link
Copy link
Closed
Labels
c: regressionIt was better in the past than it is nowIt was better in the past than it is nowframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packageswaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
Steps to Reproduce
- Assign a default value in
valueforDropdownButtonFormField.
Expected results: The dropdown should show the value
Actual results: dropdown is showing blank value
Note:
- I am facing this after upgrading to
1.17.0. My previous version was1.12.13. - On
1.17.0,DropdownButtonworks fine butDropdownButtonFormFielddoesn't
Flutter Doctor:
[✓] Flutter (Channel stable, v1.17.0, on Linux, locale en_IN)
• Flutter version 1.17.0 at /home/arnold/flutter
• Framework revision e6b34c2b5c (6 days ago), 2020-05-02 11:39:18 -0700
• Engine revision 540786dd51
• Dart version 2.8.1
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/arnold/Android/Sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: /home/arnold/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)
• All Android licenses accepted.
[!] Android Studio (version 3.4)
• Android Studio at /home/arnold/android-studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)
[✓] VS Code (version 1.43.1)
• VS Code at /usr/share/code
• Flutter extension version 3.9.1
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
! Doctor found issues in 1 category.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: regressionIt was better in the past than it is nowIt was better in the past than it is nowframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packageswaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Activity
shihaohong commentedon May 11, 2020
Hi @arnold-parge, could you please share a minimal reproducible sample? I tried the following simple app and it seems to work just fine on the
masterandstablebranches:github-actions commentedon Aug 21, 2021
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
flutter doctor -vand a minimal reproduction of the issue.