Skip to content
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

Can I customize the drop down items #10

Open
shanaya-kanade opened this issue Sep 14, 2020 · 1 comment
Open

Can I customize the drop down items #10

shanaya-kanade opened this issue Sep 14, 2020 · 1 comment

Comments

@shanaya-kanade
Copy link

Right now one string appears in the drop down, what if I want to display 2 values separated by '\n', Is that Possible? and also change the text style? basically I'm looking for a way to override the widget that displays the item?

Thanks, Shilpi

@shanaya-kanade
Copy link
Author

shanaya-kanade commented Sep 15, 2020

final List<DropdownMenuItem> dropDownItemsTemp = [];
for (final String contact in contacts) {
dropDownItemsTemp.add(DropdownMenuItem(
value: contact,
child: Text(contact),
));
}

Using that for Items doesn't work :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant