Skip to content

Unable to set initial value to DropdownButtonFieldForm [1.17.0] #56716

@arnold-parge

Description

@arnold-parge

Steps to Reproduce

  1. Assign a default value in value for DropdownButtonFormField.

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 was 1.12.13.
  • On 1.17.0, DropdownButton works fine but DropdownButtonFormField doesn'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.

Metadata

Metadata

Assignees

Labels

c: regressionIt was better in the past than it is nowf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.waiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions