1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-20 14:07:34 +00:00

Adds season display to details screen. (#62)

This commit is contained in:
Andrew Brogdon
2019-03-25 11:22:23 -07:00
committed by GitHub
parent 673992f49e
commit bf3a963bdc
5 changed files with 92 additions and 31 deletions

View File

@@ -62,6 +62,13 @@ const Map<VeggieCategory, String> veggieCategoryNames = {
VeggieCategory.vegetable: 'Vegetable',
};
const Map<Season, String> seasonNames = {
Season.winter: 'Winter',
Season.spring: 'Spring',
Season.summer: 'Summer',
Season.autumn: 'Autumn',
};
class Veggie {
Veggie({
@required this.id,