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

The Code is different from what was taught in the book. #5

Closed
vikilinho opened this issue Jun 16, 2020 · 0 comments
Closed

The Code is different from what was taught in the book. #5

vikilinho opened this issue Jun 16, 2020 · 0 comments

Comments

@vikilinho
Copy link

vikilinho commented Jun 16, 2020

Chapter 2.
You will find the below codes in the book. Using Map in place of List caused an error in the Dropdown button widget.

final Map<String, int> _measures = {
'Meters': 0,
'Kilogram': 1,
'Grams': 2,
'kilometers': 3,
'Feets': 4,
'Miles': 5,
'Pounds (libs)': 6,
'Ounces': 7

};

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

No branches or pull requests

2 participants