mirror of
https://github.com/flutter/samples.git
synced 2026-04-07 12:14:27 +00:00
Adds season display to details screen. (#62)
This commit is contained in:
@@ -72,7 +72,7 @@ class LocalVeggieProvider {
|
||||
'2000 B.C.E.',
|
||||
'6500 B.C.E.',
|
||||
],
|
||||
1,
|
||||
2,
|
||||
),
|
||||
Trivia(
|
||||
'What are the seed pockets inside an apple called?',
|
||||
@@ -92,7 +92,7 @@ class LocalVeggieProvider {
|
||||
category: VeggieCategory.flower,
|
||||
shortDescription: 'The armadillo of vegetables.',
|
||||
accentColor: Color(0x408ea26d),
|
||||
seasons: [Season.autumn, Season.spring],
|
||||
seasons: [Season.spring, Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 25,
|
||||
servingSize: '1 medium artichoke',
|
||||
@@ -380,7 +380,7 @@ class LocalVeggieProvider {
|
||||
category: VeggieCategory.leafy,
|
||||
shortDescription: 'It\'s basically the veal of lettuce.',
|
||||
accentColor: Color(0x40c5be53),
|
||||
seasons: [Season.winter, Season.autumn, Season.spring],
|
||||
seasons: [Season.winter, Season.spring, Season.autumn],
|
||||
vitaminAPercentage: 10,
|
||||
vitaminCPercentage: 2,
|
||||
servingSize: '1/2 cup, chopped',
|
||||
@@ -422,7 +422,7 @@ class LocalVeggieProvider {
|
||||
category: VeggieCategory.fruit,
|
||||
shortDescription: 'Delicious when sliced and wrapped in prosciutto.',
|
||||
accentColor: Color(0x40aa6d7c),
|
||||
seasons: [Season.autumn, Season.summer],
|
||||
seasons: [Season.summer, Season.autumn],
|
||||
vitaminAPercentage: 2,
|
||||
vitaminCPercentage: 2,
|
||||
servingSize: '1 large fig',
|
||||
@@ -557,7 +557,7 @@ class LocalVeggieProvider {
|
||||
category: VeggieCategory.stealthFruit,
|
||||
shortDescription: 'Delicious... in extremely small quantities.',
|
||||
accentColor: Color(0x40ff7a01),
|
||||
seasons: [Season.autumn, Season.summer],
|
||||
seasons: [Season.summer, Season.autumn],
|
||||
vitaminAPercentage: 9,
|
||||
vitaminCPercentage: 100,
|
||||
servingSize: '1 pepper',
|
||||
@@ -1037,7 +1037,7 @@ class LocalVeggieProvider {
|
||||
category: VeggieCategory.leafy,
|
||||
shortDescription: 'It\'s that bitter taste in the salad you\'re eating.',
|
||||
accentColor: Color(0x40d75875),
|
||||
seasons: [Season.autumn, Season.spring],
|
||||
seasons: [Season.spring, Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 10,
|
||||
servingSize: '2 cups shredded',
|
||||
|
||||
@@ -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