mirror of
https://github.com/flutter/samples.git
synced 2026-05-20 05:57:33 +00:00
Adds season display to details screen. (#62)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user