mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 06:48:26 +00:00
Upgrading samples to flutter_lints, part 1 of n (#804)
This commit is contained in:
@@ -13,13 +13,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/apple.jpg',
|
||||
category: VeggieCategory.fruit,
|
||||
shortDescription: 'Green or red, they\'re generally round and tasty.',
|
||||
accentColor: Color(0x40de8c66),
|
||||
accentColor: const Color(0x40de8c66),
|
||||
seasons: [Season.winter, Season.spring, Season.summer, Season.autumn],
|
||||
vitaminAPercentage: 2,
|
||||
vitaminCPercentage: 8,
|
||||
servingSize: 'One large apple',
|
||||
caloriesPerServing: 130,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'A peck of apples (that\'s a real unit of mesaurement!) weighs approximately how many pounds?',
|
||||
[
|
||||
@@ -91,13 +91,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/artichoke.jpg',
|
||||
category: VeggieCategory.flower,
|
||||
shortDescription: 'The armadillo of vegetables.',
|
||||
accentColor: Color(0x408ea26d),
|
||||
accentColor: const Color(0x408ea26d),
|
||||
seasons: [Season.spring, Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 25,
|
||||
servingSize: '1 medium artichoke',
|
||||
caloriesPerServing: 60,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Artichokes are which part of the plant?',
|
||||
[
|
||||
@@ -142,13 +142,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/asparagus.jpg',
|
||||
category: VeggieCategory.fern,
|
||||
shortDescription: 'It\'s been used a food and medicine for millenia.',
|
||||
accentColor: Color(0x408cb437),
|
||||
accentColor: const Color(0x408cb437),
|
||||
seasons: [Season.spring],
|
||||
vitaminAPercentage: 10,
|
||||
vitaminCPercentage: 15,
|
||||
servingSize: '5 spears',
|
||||
caloriesPerServing: 20,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'The nodules at the tip of an asparagus spear are actually which part of the plant?',
|
||||
[
|
||||
@@ -193,13 +193,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/avocado.jpg',
|
||||
category: VeggieCategory.stealthFruit,
|
||||
shortDescription: 'One of the oiliest, richest fruits money can buy.',
|
||||
accentColor: Color(0x40b0ba59),
|
||||
accentColor: const Color(0x40b0ba59),
|
||||
seasons: [Season.winter, Season.spring, Season.summer],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 4,
|
||||
servingSize: '1/5 medium avocado',
|
||||
caloriesPerServing: 50,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'What\'s the most popular variety of avocado?',
|
||||
[
|
||||
@@ -244,13 +244,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/blackberry.jpg',
|
||||
category: VeggieCategory.berry,
|
||||
shortDescription: 'Find them on backroads and fences in the Northwest.',
|
||||
accentColor: Color(0x409d5adb),
|
||||
accentColor: const Color(0x409d5adb),
|
||||
seasons: [Season.summer],
|
||||
vitaminAPercentage: 6,
|
||||
vitaminCPercentage: 4,
|
||||
servingSize: '1 cup',
|
||||
caloriesPerServing: 62,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'What color are unripe blackberries?',
|
||||
[
|
||||
@@ -286,13 +286,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/cantaloupe.jpg',
|
||||
category: VeggieCategory.melon,
|
||||
shortDescription: 'A fruit so tasty there\'s a utensil just for it.',
|
||||
accentColor: Color(0x40f6bd56),
|
||||
accentColor: const Color(0x40f6bd56),
|
||||
seasons: [Season.summer],
|
||||
vitaminAPercentage: 120,
|
||||
vitaminCPercentage: 80,
|
||||
servingSize: '1/4 medium cantaloupe',
|
||||
caloriesPerServing: 50,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Which of these is another name for cantaloupe?',
|
||||
[
|
||||
@@ -337,13 +337,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/cauliflower.jpg',
|
||||
category: VeggieCategory.cruciferous,
|
||||
shortDescription: 'Looks like white broccoli and explodes when cut.',
|
||||
accentColor: Color(0x40c891a8),
|
||||
accentColor: const Color(0x40c891a8),
|
||||
seasons: [Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 100,
|
||||
servingSize: '1/6 medium head',
|
||||
caloriesPerServing: 25,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'The quote "Cauliflower is nothing but cabbage with a college education" is attributed to whom?',
|
||||
[
|
||||
@@ -397,13 +397,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/endive.jpg',
|
||||
category: VeggieCategory.leafy,
|
||||
shortDescription: 'It\'s basically the veal of lettuce.',
|
||||
accentColor: Color(0x40c5be53),
|
||||
accentColor: const Color(0x40c5be53),
|
||||
seasons: [Season.winter, Season.spring, Season.autumn],
|
||||
vitaminAPercentage: 10,
|
||||
vitaminCPercentage: 2,
|
||||
servingSize: '1/2 cup, chopped',
|
||||
caloriesPerServing: 4,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'What\'s another name for Belgian endive?',
|
||||
[
|
||||
@@ -439,13 +439,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/fig.jpg',
|
||||
category: VeggieCategory.fruit,
|
||||
shortDescription: 'Delicious when sliced and wrapped in prosciutto.',
|
||||
accentColor: Color(0x40aa6d7c),
|
||||
accentColor: const Color(0x40aa6d7c),
|
||||
seasons: [Season.summer, Season.autumn],
|
||||
vitaminAPercentage: 2,
|
||||
vitaminCPercentage: 2,
|
||||
servingSize: '1 large fig',
|
||||
caloriesPerServing: 50,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Which of these isn\'t a variety of figs?',
|
||||
[
|
||||
@@ -481,13 +481,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/grape.jpg',
|
||||
category: VeggieCategory.berry,
|
||||
shortDescription: 'Couldn\'t have wine without them.',
|
||||
accentColor: Color(0x40ac708a),
|
||||
accentColor: const Color(0x40ac708a),
|
||||
seasons: [Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 2,
|
||||
servingSize: '3/4 cup',
|
||||
caloriesPerServing: 90,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'How long ago were grapes introduced to the Americas?',
|
||||
[
|
||||
@@ -532,13 +532,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/green_bell_pepper.jpg',
|
||||
category: VeggieCategory.stealthFruit,
|
||||
shortDescription: 'Pleasantly bitter, like a sad movie.',
|
||||
accentColor: Color(0x408eb332),
|
||||
accentColor: const Color(0x408eb332),
|
||||
seasons: [Season.summer],
|
||||
vitaminAPercentage: 4,
|
||||
vitaminCPercentage: 190,
|
||||
servingSize: '1 medium pepper',
|
||||
caloriesPerServing: 25,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'What\'s the Australian term for a bell pepper?',
|
||||
[
|
||||
@@ -574,13 +574,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/habanero.jpg',
|
||||
category: VeggieCategory.stealthFruit,
|
||||
shortDescription: 'Delicious... in extremely small quantities.',
|
||||
accentColor: Color(0x40ff7a01),
|
||||
accentColor: const Color(0x40ff7a01),
|
||||
seasons: [Season.summer, Season.autumn],
|
||||
vitaminAPercentage: 9,
|
||||
vitaminCPercentage: 100,
|
||||
servingSize: '1 pepper',
|
||||
caloriesPerServing: 20,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'How high can habaneros rate on the Scoville scale?',
|
||||
[
|
||||
@@ -616,13 +616,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/kale.jpg',
|
||||
category: VeggieCategory.cruciferous,
|
||||
shortDescription: 'The meanest vegetable. Does not want to be eaten.',
|
||||
accentColor: Color(0x40a86bd8),
|
||||
accentColor: const Color(0x40a86bd8),
|
||||
seasons: [Season.winter, Season.autumn],
|
||||
vitaminAPercentage: 133,
|
||||
vitaminCPercentage: 134,
|
||||
servingSize: '1 cup, chopped',
|
||||
caloriesPerServing: 33,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Kale is sweeter when harvested after what?',
|
||||
[
|
||||
@@ -658,13 +658,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/kiwi.jpg',
|
||||
category: VeggieCategory.berry,
|
||||
shortDescription: 'Also known as Chinese gooseberry.',
|
||||
accentColor: Color(0x40b47b37),
|
||||
accentColor: const Color(0x40b47b37),
|
||||
seasons: [Season.summer],
|
||||
vitaminAPercentage: 2,
|
||||
vitaminCPercentage: 240,
|
||||
servingSize: '2 medium kiwis',
|
||||
caloriesPerServing: 90,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Europeans sometimes refer to kiwi as what?',
|
||||
[
|
||||
@@ -700,13 +700,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/lemon.jpg',
|
||||
category: VeggieCategory.citrus,
|
||||
shortDescription: 'Similar to limes, only yellow.',
|
||||
accentColor: Color(0x40e2a500),
|
||||
accentColor: const Color(0x40e2a500),
|
||||
seasons: [Season.winter],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 40,
|
||||
servingSize: '1 medium lemon',
|
||||
caloriesPerServing: 15,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'A lemon tree can produce up to how many pounds of fruit each year?',
|
||||
[
|
||||
@@ -751,13 +751,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/lime.jpg',
|
||||
category: VeggieCategory.citrus,
|
||||
shortDescription: 'Couldn\'t have ceviche and margaritas without them.',
|
||||
accentColor: Color(0x4089b733),
|
||||
accentColor: const Color(0x4089b733),
|
||||
seasons: [Season.winter],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 35,
|
||||
servingSize: '1 medium lime',
|
||||
caloriesPerServing: 20,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Which American state is famous for its Key Lime Pie?',
|
||||
[
|
||||
@@ -793,13 +793,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/mango.jpg',
|
||||
category: VeggieCategory.tropical,
|
||||
shortDescription: 'A fun orange fruit popular with smoothie enthusiasts.',
|
||||
accentColor: Color(0x40fcc93c),
|
||||
accentColor: const Color(0x40fcc93c),
|
||||
seasons: [Season.summer, Season.autumn],
|
||||
vitaminAPercentage: 72,
|
||||
vitaminCPercentage: 203,
|
||||
servingSize: '1 fruit',
|
||||
caloriesPerServing: 201,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'In Mexico, mangos are frequently dusted with what spices before being eaten as a snack?',
|
||||
[
|
||||
@@ -835,13 +835,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/mushroom.jpg',
|
||||
category: VeggieCategory.fungus,
|
||||
shortDescription: 'They\'re not truffles, but they\'re still tasty.',
|
||||
accentColor: Color(0x40ba754b),
|
||||
accentColor: const Color(0x40ba754b),
|
||||
seasons: [Season.spring, Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 2,
|
||||
servingSize: '5 medium \'shrooms',
|
||||
caloriesPerServing: 20,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Someone who loves eating mushrooms is called what?',
|
||||
[
|
||||
@@ -886,13 +886,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/nectarine.jpg',
|
||||
category: VeggieCategory.stoneFruit,
|
||||
shortDescription: 'Tiny, bald peaches.',
|
||||
accentColor: Color(0x40e45b3b),
|
||||
accentColor: const Color(0x40e45b3b),
|
||||
seasons: [Season.summer],
|
||||
vitaminAPercentage: 8,
|
||||
vitaminCPercentage: 15,
|
||||
servingSize: '1 medium nectarine',
|
||||
caloriesPerServing: 60,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Nectarines are technically a variety of which other fruit?',
|
||||
[
|
||||
@@ -928,13 +928,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/persimmon.jpg',
|
||||
category: VeggieCategory.fruit,
|
||||
shortDescription: 'It\'s like a plum and an apple had a baby together.',
|
||||
accentColor: Color(0x40979852),
|
||||
accentColor: const Color(0x40979852),
|
||||
seasons: [Season.winter, Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 27,
|
||||
servingSize: '1 fruit',
|
||||
caloriesPerServing: 32,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'What\'s the most commonly grown variety of persimmon?',
|
||||
[
|
||||
@@ -970,13 +970,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/plum.jpg',
|
||||
category: VeggieCategory.stoneFruit,
|
||||
shortDescription: 'Popular in fruit salads and children\'s tales.',
|
||||
accentColor: Color(0x40e48b47),
|
||||
accentColor: const Color(0x40e48b47),
|
||||
seasons: [Season.summer],
|
||||
vitaminAPercentage: 8,
|
||||
vitaminCPercentage: 10,
|
||||
servingSize: '2 medium plums',
|
||||
caloriesPerServing: 70,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Plums should be handled with care because...?',
|
||||
[
|
||||
@@ -1012,13 +1012,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/potato.jpg',
|
||||
category: VeggieCategory.tuber,
|
||||
shortDescription: 'King of starches and giver of french fries.',
|
||||
accentColor: Color(0x40c65c63),
|
||||
accentColor: const Color(0x40c65c63),
|
||||
seasons: [Season.winter, Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 45,
|
||||
servingSize: '1 medium spud',
|
||||
caloriesPerServing: 110,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Which country consumes the most fried potatoes per capita?',
|
||||
[
|
||||
@@ -1054,13 +1054,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/radicchio.jpg',
|
||||
category: VeggieCategory.leafy,
|
||||
shortDescription: 'It\'s that bitter taste in the salad you\'re eating.',
|
||||
accentColor: Color(0x40d75875),
|
||||
accentColor: const Color(0x40d75875),
|
||||
seasons: [Season.spring, Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 10,
|
||||
servingSize: '2 cups shredded',
|
||||
caloriesPerServing: 20,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Radicchio is a particuarly good source of which mineral?',
|
||||
[
|
||||
@@ -1096,13 +1096,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/radish.jpg',
|
||||
category: VeggieCategory.root,
|
||||
shortDescription: 'Try roasting them in addition to slicing them up raw.',
|
||||
accentColor: Color(0x40819e4e),
|
||||
accentColor: const Color(0x40819e4e),
|
||||
seasons: [Season.spring, Season.autumn],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 30,
|
||||
servingSize: '7 radishes',
|
||||
caloriesPerServing: 10,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Which ancient civilization is known to have used radish oil?',
|
||||
[
|
||||
@@ -1138,13 +1138,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/squash.jpg',
|
||||
category: VeggieCategory.gourd,
|
||||
shortDescription: 'Just slather them in butter and pop \'em in the oven.',
|
||||
accentColor: Color(0x40dbb721),
|
||||
accentColor: const Color(0x40dbb721),
|
||||
seasons: [Season.winter, Season.autumn],
|
||||
vitaminAPercentage: 297,
|
||||
vitaminCPercentage: 48,
|
||||
servingSize: '1 cup diced butternut',
|
||||
caloriesPerServing: 63,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Which of these is not a type of squash?',
|
||||
[
|
||||
@@ -1181,13 +1181,13 @@ class LocalVeggieProvider {
|
||||
category: VeggieCategory.berry,
|
||||
shortDescription:
|
||||
'A delicious fruit that keeps its seeds on the outside.',
|
||||
accentColor: Color(0x40f06a44),
|
||||
accentColor: const Color(0x40f06a44),
|
||||
seasons: [Season.spring, Season.summer],
|
||||
vitaminAPercentage: 0,
|
||||
vitaminCPercentage: 160,
|
||||
servingSize: '8 medium strawberries',
|
||||
caloriesPerServing: 50,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'How many seeds are in the average strawberry?',
|
||||
[
|
||||
@@ -1223,13 +1223,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/tangelo.jpg',
|
||||
category: VeggieCategory.citrus,
|
||||
shortDescription: 'No one\'s sure what they are or where they came from.',
|
||||
accentColor: Color(0x40f88c06),
|
||||
accentColor: const Color(0x40f88c06),
|
||||
seasons: [Season.winter, Season.autumn],
|
||||
vitaminAPercentage: 6,
|
||||
vitaminCPercentage: 181,
|
||||
servingSize: '1 medium tangelo',
|
||||
caloriesPerServing: 60,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'The tangelo is thought to be a cross between oranges and which other fruit?',
|
||||
[
|
||||
@@ -1265,13 +1265,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/tomato.jpg',
|
||||
category: VeggieCategory.stealthFruit,
|
||||
shortDescription: 'A new world food with old world tradition.',
|
||||
accentColor: Color(0x40ea3628),
|
||||
accentColor: const Color(0x40ea3628),
|
||||
seasons: [Season.summer],
|
||||
vitaminAPercentage: 20,
|
||||
vitaminCPercentage: 40,
|
||||
servingSize: '1 medium tomato',
|
||||
caloriesPerServing: 25,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'French speakers sometimes refer to tomatoes with which name?',
|
||||
[
|
||||
@@ -1307,13 +1307,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/watermelon.jpg',
|
||||
category: VeggieCategory.melon,
|
||||
shortDescription: 'Everyone\'s favorite closing act at the picnic.',
|
||||
accentColor: Color(0x40fa8c75),
|
||||
accentColor: const Color(0x40fa8c75),
|
||||
seasons: [Season.summer],
|
||||
vitaminAPercentage: 30,
|
||||
vitaminCPercentage: 25,
|
||||
servingSize: '2 cups diced',
|
||||
caloriesPerServing: 80,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'How much of a watermelon is water?',
|
||||
[
|
||||
@@ -1358,13 +1358,13 @@ class LocalVeggieProvider {
|
||||
imageAssetPath: 'assets/images/orange_bell_pepper.jpg',
|
||||
category: VeggieCategory.stealthFruit,
|
||||
shortDescription: 'Like green pepper, but nicer.',
|
||||
accentColor: Color(0x40fd8e00),
|
||||
accentColor: const Color(0x40fd8e00),
|
||||
seasons: [Season.summer],
|
||||
vitaminAPercentage: 4,
|
||||
vitaminCPercentage: 190,
|
||||
servingSize: '1 medium pepper',
|
||||
caloriesPerServing: 25,
|
||||
trivia: [
|
||||
trivia: const [
|
||||
Trivia(
|
||||
'Which compound (not found in bell peppers) is responsible for many peppers\' spicy taste?',
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user