Skip to content

CupertinoPicker example does not select initial value when dismissed #110732

@stevethehu

Description

@stevethehu

Steps to reproduce:

  1. go to https://api.flutter.dev/flutter/cupertino/CupertinoPicker-class.html
  2. open the picker in the dartpad and select a value other than Apple, e.g. Orange
  3. dismiss the picker and observe that the button has updated to the selected value
  4. open the picker again and observe that the initially selected value is Apple
  5. dismiss the picker and observe that the button does not update to Apple

Expected behavior:
the button should be updated to the selected value when the picker is dismissed

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listd: examplesSample code and demosf: cupertinoflutter/packages/flutter/cupertino repositoryfound in release: 3.1Found to occur in 3.1found in release: 3.3Found to occur in 3.3frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions