card_settings icon indicating copy to clipboard operation
card_settings copied to clipboard

Feature request: add option in CardSettingsSelectionPicker to accept an id and value for each options

Open kuromukira opened this issue 5 years ago • 3 comments

Currently, the CardSettingsSelectionPicker only accepts a list of string with the initial value of string. The default Flutter dropdown item supports for {id, value} options and the selected value as the id. It would be great if you'd be able to support this. Thanks

kuromukira avatar Jul 04 '20 19:07 kuromukira

This is on my wishlish too to make it work like the native controls. Probably in version 2.0 since it's a pretty big breaking change.

codegrue avatar Jul 06 '20 15:07 codegrue

Note there is an values list that can be used to have different values and options. It's just not a single object like the way dropdown works. That will be the breaking change. But you can do this today. Look at how it's done in the Pony example.

codegrue avatar Jul 07 '20 15:07 codegrue

Will take a look at it. Thanks.

kuromukira avatar Jul 07 '20 15:07 kuromukira