Unverified Commit 226f2c1e authored by Mehmet Fidanboylu's avatar Mehmet Fidanboylu Committed by GitHub

Fix broken asset uris (#18336)

parent 691cbee6
......@@ -59,50 +59,50 @@ class Section {
// image SectionDetails in the allSections list.
const SectionDetail _eyeglassesDetail = const SectionDetail(
imageAsset: '/products/sunnies.png',
imageAsset: 'products/sunnies.png',
imageAssetPackage: _kGalleryAssetsPackage,
title: 'Flutter enables interactive animation',
subtitle: '3K views - 5 days',
);
const SectionDetail _eyeglassesImageDetail = const SectionDetail(
imageAsset: '/products/sunnies.png',
imageAsset: 'products/sunnies.png',
imageAssetPackage: _kGalleryAssetsPackage,
);
const SectionDetail _seatingDetail = const SectionDetail(
imageAsset: '/products/table.png',
imageAsset: 'products/table.png',
imageAssetPackage: _kGalleryAssetsPackage,
title: 'Flutter enables interactive animation',
subtitle: '3K views - 5 days',
);
const SectionDetail _seatingImageDetail = const SectionDetail(
imageAsset: '/products/table.png',
imageAsset: 'products/table.png',
imageAssetPackage: _kGalleryAssetsPackage,
);
const SectionDetail _decorationDetail = const SectionDetail(
imageAsset: '/products/earrings.png',
imageAsset: 'products/earrings.png',
imageAssetPackage: _kGalleryAssetsPackage,
title: 'Flutter enables interactive animation',
subtitle: '3K views - 5 days',
);
const SectionDetail _decorationImageDetail = const SectionDetail(
imageAsset: '/products/earrings.png',
imageAsset: 'products/earrings.png',
imageAssetPackage: _kGalleryAssetsPackage,
);
const SectionDetail _protectionDetail = const SectionDetail(
imageAsset: '/products/hat.png',
imageAsset: 'products/hat.png',
imageAssetPackage: _kGalleryAssetsPackage,
title: 'Flutter enables interactive animation',
subtitle: '3K views - 5 days',
);
const SectionDetail _protectionImageDetail = const SectionDetail(
imageAsset: '/products/hat.png',
imageAsset: 'products/hat.png',
imageAssetPackage: _kGalleryAssetsPackage,
);
......@@ -111,7 +111,7 @@ final List<Section> allSections = <Section>[
title: 'SUNGLASSES',
leftColor: _mediumPurple,
rightColor: _mariner,
backgroundAsset: '/products/sunnies.png',
backgroundAsset: 'products/sunnies.png',
backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[
_eyeglassesDetail,
......@@ -126,7 +126,7 @@ final List<Section> allSections = <Section>[
title: 'FURNITURE',
leftColor: _tomato,
rightColor: _mediumPurple,
backgroundAsset: '/products/table.png',
backgroundAsset: 'products/table.png',
backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[
_seatingDetail,
......@@ -141,7 +141,7 @@ final List<Section> allSections = <Section>[
title: 'JEWELRY',
leftColor: _mySin,
rightColor: _tomato,
backgroundAsset: '/products/earrings.png',
backgroundAsset: 'products/earrings.png',
backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[
_decorationDetail,
......@@ -156,7 +156,7 @@ final List<Section> allSections = <Section>[
title: 'HEADWEAR',
leftColor: Colors.white,
rightColor: _tomato,
backgroundAsset: '/products/hat.png',
backgroundAsset: 'products/hat.png',
backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[
_protectionDetail,
......
......@@ -160,7 +160,7 @@ class ContactsDemoState extends State<ContactsDemo> {
fit: StackFit.expand,
children: <Widget>[
new Image.asset(
'/people/ali_landscape.png',
'people/ali_landscape.png',
package: 'flutter_gallery_assets',
fit: BoxFit.cover,
height: _appBarHeight,
......
......@@ -507,7 +507,7 @@ class Tab2Header extends StatelessWidget {
decoration: const BoxDecoration(
image: const DecorationImage(
image: const AssetImage(
'/people/square/trevor.png',
'people/square/trevor.png',
package: _kGalleryAssetsPackage,
),
),
......@@ -521,7 +521,7 @@ class Tab2Header extends StatelessWidget {
decoration: const BoxDecoration(
image: const DecorationImage(
image: const AssetImage(
'/people/square/sandra.png',
'people/square/sandra.png',
package: _kGalleryAssetsPackage,
),
),
......
......@@ -17,7 +17,7 @@ class ImagesDemo extends StatelessWidget {
demoWidget: new Semantics(
label: 'Example of animated WEBP',
child: new Image.asset(
'/animated_images/animated_flutter_stickers.webp',
'animated_images/animated_flutter_stickers.webp',
package: 'flutter_gallery_assets',
),
),
......@@ -29,7 +29,7 @@ class ImagesDemo extends StatelessWidget {
demoWidget: new Semantics(
label: 'Example of animated GIF',
child:new Image.asset(
'/animated_images/animated_flutter_lgtm.gif',
'animated_images/animated_flutter_lgtm.gif',
package: 'flutter_gallery_assets',
),
),
......
......@@ -22,74 +22,74 @@ const List<Category> allCategories = const <Category>[
const Category(
title: 'Accessories',
assets: const <String>[
'/products/belt.png',
'/products/earrings.png',
'/products/backpack.png',
'/products/hat.png',
'/products/scarf.png',
'/products/sunnies.png',
'products/belt.png',
'products/earrings.png',
'products/backpack.png',
'products/hat.png',
'products/scarf.png',
'products/sunnies.png',
],
),
const Category(
title: 'Blue',
assets: const <String>[
'/products/backpack.png',
'/products/cup.png',
'/products/napkins.png',
'/products/top.png',
'products/backpack.png',
'products/cup.png',
'products/napkins.png',
'products/top.png',
],
),
const Category(
title: 'Cold Weather',
assets: const <String>[
'/products/jacket.png',
'/products/jumper.png',
'/products/scarf.png',
'/products/sweater.png',
'/products/sweats.png',
'products/jacket.png',
'products/jumper.png',
'products/scarf.png',
'products/sweater.png',
'products/sweats.png',
],
),
const Category(
title: 'Home',
assets: const <String>[
'/products/cup.png',
'/products/napkins.png',
'/products/planters.png',
'/products/table.png',
'/products/teaset.png',
'products/cup.png',
'products/napkins.png',
'products/planters.png',
'products/table.png',
'products/teaset.png',
],
),
const Category(
title: 'Tops',
assets: const <String>[
'/products/jumper.png',
'/products/shirt.png',
'/products/sweater.png',
'/products/top.png',
'products/jumper.png',
'products/shirt.png',
'products/sweater.png',
'products/top.png',
],
),
const Category(
title: 'Everything',
assets: const <String>[
'/products/backpack.png',
'/products/belt.png',
'/products/cup.png',
'/products/dress.png',
'/products/earrings.png',
'/products/flatwear.png',
'/products/hat.png',
'/products/jacket.png',
'/products/jumper.png',
'/products/napkins.png',
'/products/planters.png',
'/products/scarf.png',
'/products/shirt.png',
'/products/sunnies.png',
'/products/sweater.png',
'/products/sweats.png',
'/products/table.png',
'/products/teaset.png',
'/products/top.png',
'products/backpack.png',
'products/belt.png',
'products/cup.png',
'products/dress.png',
'products/earrings.png',
'products/flatwear.png',
'products/hat.png',
'products/jacket.png',
'products/jumper.png',
'products/napkins.png',
'products/planters.png',
'products/scarf.png',
'products/shirt.png',
'products/sunnies.png',
'products/sweater.png',
'products/sweats.png',
'products/table.png',
'products/teaset.png',
'products/top.png',
],
),
];
......
......@@ -25,7 +25,7 @@ class TravelDestination {
final List<TravelDestination> destinations = <TravelDestination>[
const TravelDestination(
assetName: '/places/india_thanjavur_market.png',
assetName: 'places/india_thanjavur_market.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Top 10 Cities to Visit in Tamil Nadu',
description: const <String>[
......@@ -35,7 +35,7 @@ final List<TravelDestination> destinations = <TravelDestination>[
],
),
const TravelDestination(
assetName: '/places/india_chettinad_silk_maker.png',
assetName: 'places/india_chettinad_silk_maker.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Artisans of Southern India',
description: const <String>[
......
......@@ -45,11 +45,11 @@ const List<String> _defaultTools = const <String>[
];
const Map<String, String> _avatars = const <String, String>{
'hammer': '/people/square/ali.png',
'chisel': '/people/square/sandra.png',
'fryer': '/people/square/trevor.png',
'fabricator': '/people/square/stella.png',
'customer': '/people/square/peter.png',
'hammer': 'people/square/ali.png',
'chisel': 'people/square/sandra.png',
'fryer': 'people/square/trevor.png',
'fabricator': 'people/square/stella.png',
'customer': 'people/square/peter.png',
};
final Map<String, Set<String>> _toolActions = <String, Set<String>>{
......
......@@ -4,9 +4,9 @@
import 'package:flutter/material.dart';
const String _kAsset0 = '/people/square/trevor.png';
const String _kAsset1 = '/people/square/stella.png';
const String _kAsset2 = '/people/square/sandra.png';
const String _kAsset0 = 'people/square/trevor.png';
const String _kAsset1 = 'people/square/stella.png';
const String _kAsset2 = 'people/square/sandra.png';
const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
class DrawerDemo extends StatefulWidget {
......
......@@ -254,73 +254,73 @@ class GridListDemoState extends State<GridListDemo> {
List<Photo> photos = <Photo>[
new Photo(
assetName: '/places/india_chennai_flower_market.png',
assetName: 'places/india_chennai_flower_market.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Chennai',
caption: 'Flower Market',
),
new Photo(
assetName: '/places/india_tanjore_bronze_works.png',
assetName: 'places/india_tanjore_bronze_works.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore',
caption: 'Bronze Works',
),
new Photo(
assetName: '/places/india_tanjore_market_merchant.png',
assetName: 'places/india_tanjore_market_merchant.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore',
caption: 'Market',
),
new Photo(
assetName: '/places/india_tanjore_thanjavur_temple.png',
assetName: 'places/india_tanjore_thanjavur_temple.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore',
caption: 'Thanjavur Temple',
),
new Photo(
assetName: '/places/india_tanjore_thanjavur_temple_carvings.png',
assetName: 'places/india_tanjore_thanjavur_temple_carvings.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore',
caption: 'Thanjavur Temple',
),
new Photo(
assetName: '/places/india_pondicherry_salt_farm.png',
assetName: 'places/india_pondicherry_salt_farm.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Pondicherry',
caption: 'Salt Farm',
),
new Photo(
assetName: '/places/india_chennai_highway.png',
assetName: 'places/india_chennai_highway.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Chennai',
caption: 'Scooters',
),
new Photo(
assetName: '/places/india_chettinad_silk_maker.png',
assetName: 'places/india_chettinad_silk_maker.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Chettinad',
caption: 'Silk Maker',
),
new Photo(
assetName: '/places/india_chettinad_produce.png',
assetName: 'places/india_chettinad_produce.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Chettinad',
caption: 'Lunch Prep',
),
new Photo(
assetName: '/places/india_tanjore_market_technology.png',
assetName: 'places/india_tanjore_market_technology.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore',
caption: 'Market',
),
new Photo(
assetName: '/places/india_pondicherry_beach.png',
assetName: 'places/india_pondicherry_beach.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Pondicherry',
caption: 'Beach',
),
new Photo(
assetName: '/places/india_pondicherry_fisherman.png',
assetName: 'places/india_pondicherry_fisherman.png',
assetPackage: _kGalleryAssetsPackage,
title: 'Pondicherry',
caption: 'Fisherman',
......
......@@ -104,7 +104,7 @@ class _SearchDemoState extends State<SearchDemo> {
accountEmail: const Text('peter.widget@example.com'),
currentAccountPicture: const CircleAvatar(
backgroundImage: const AssetImage(
'/people/square/peter.png',
'people/square/peter.png',
package: 'flutter_gallery_assets',
),
),
......
......@@ -28,64 +28,64 @@ final Map<_Page, List<_CardData>> _allPages = <_Page, List<_CardData>>{
new _Page(label: 'HOME'): <_CardData>[
const _CardData(
title: 'Flatwear',
imageAsset: '/products/flatwear.png',
imageAsset: 'products/flatwear.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Pine Table',
imageAsset: '/products/table.png',
imageAsset: 'products/table.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Blue Cup',
imageAsset: '/products/cup.png',
imageAsset: 'products/cup.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Tea Set',
imageAsset: '/products/teaset.png',
imageAsset: 'products/teaset.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Desk Set',
imageAsset: '/products/deskset.png',
imageAsset: 'products/deskset.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Blue Linen Napkins',
imageAsset: '/products/napkins.png',
imageAsset: 'products/napkins.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Planters',
imageAsset: '/products/planters.png',
imageAsset: 'products/planters.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Kitchen Quattro',
imageAsset: '/products/kitchen_quattro.png',
imageAsset: 'products/kitchen_quattro.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Platter',
imageAsset: '/products/platter.png',
imageAsset: 'products/platter.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
],
new _Page(label: 'APPAREL'): <_CardData>[
const _CardData(
title: 'Cloud-White Dress',
imageAsset: '/products/dress.png',
imageAsset: 'products/dress.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Ginger Scarf',
imageAsset: '/products/scarf.png',
imageAsset: 'products/scarf.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
const _CardData(
title: 'Blush Sweats',
imageAsset: '/products/sweats.png',
imageAsset: 'products/sweats.png',
imageAssetPackage: _kGalleryAssetsPackage,
),
],
......
......@@ -15,7 +15,7 @@ class PestoDemo extends StatelessWidget {
}
const String _kSmallLogoImage = '/logos/pesto/logo_small.png';
const String _kSmallLogoImage = 'logos/pesto/logo_small.png';
const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
const double _kAppBarHeight = 128.0;
const double _kFabHalfSize = 28.0; // TODO(mpcomplete): needs to adapt to screen size
......@@ -571,10 +571,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Pesto Bruschetta',
author: 'Peter Carlsson',
ingredientsImagePath: '/food/icons/quick.png',
ingredientsImagePath: 'food/icons/quick.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'Bask in greens this season by trying this delightful take on traditional bruschetta. Top with a dollop of homemade pesto, and season with freshly ground sea salt and pepper.',
imagePath: '/food/image1.jpg',
imagePath: 'food/image1.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '6 pieces', description: 'Mozzarella cheese'),
......@@ -591,10 +591,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Rustic purple mash',
author: 'Trevor Hansen',
ingredientsImagePath: '/food/icons/veggie.png',
ingredientsImagePath: 'food/icons/veggie.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'Abundant in color, and healthy, delicious goodness, cooking with these South American purple potatoes is a treat. Boil, mash, bake, or roast them. For taste cook with chicken stock, and a dash of extra virgin olive oil.',
imagePath: '/food/image2.jpg',
imagePath: 'food/image2.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '2 lbs', description: 'Purple potatoes, skin on'),
......@@ -611,10 +611,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Bacon Sprouts',
author: 'Ali Connors',
ingredientsImagePath: '/food/icons/main.png',
ingredientsImagePath: 'food/icons/main.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'This beautiful sprouts recipe is the most glorious side dish on a cold winter’s night. Construct it with bacon or fake-on, but always make sure the sprouts are deliciously seasoned and appropriately sautéed.',
imagePath: '/food/image3.jpg',
imagePath: 'food/image3.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '2 lbs', description: 'Brussel sprouts'),
......@@ -632,10 +632,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Oven Sausage',
author: 'Sandra Adams',
ingredientsImagePath: '/food/icons/meat.png',
ingredientsImagePath: 'food/icons/meat.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'Robust cuts of portuguese sausage add layers of flavour. Bake or fry until sausages are slightly browned and with a crispy skin. Serve warm and with cuts of pineapple for a delightful mix of sweet and savory flavour. This is the perfect dish after a swim in the sea.',
imagePath: '/food/image4.jpg',
imagePath: 'food/image4.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1 1/2 lbs', description: 'Linguisa'),
......@@ -649,10 +649,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Chicken tostadas',
author: 'Peter Carlsson',
ingredientsImagePath: '/food/icons/spicy.png',
ingredientsImagePath: 'food/icons/spicy.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'Crisp flavours and a bit of spice make this roasted chicken dish an easy go to when cooking for large groups. Top with Baja sauce for an extra kick of spice.',
imagePath: '/food/image5.jpg',
imagePath: 'food/image5.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '4-6', description: 'Small corn tortillas'),
......@@ -668,10 +668,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Coconut rice',
author: 'Ali Connors',
ingredientsImagePath: '/food/icons/healthy.png',
ingredientsImagePath: 'food/icons/healthy.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'This dish is a terrific pairing to almost any main. Bonus- it’s quick, easy to make, and turns even the simplest of dishes into a delicacy. Sweet coconut cream will leave your mouth watering, with yummy caramelized flecks of rice adding an extra bit of taste. Fluff with fork before serving for best results.',
imagePath: '/food/image6.jpg',
imagePath: 'food/image6.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '2 cups', description: 'Jasmine rice'),
......@@ -688,10 +688,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Gin basil cocktail',
author: 'Trevor Hansen',
ingredientsImagePath: '/food/icons/quick.png',
ingredientsImagePath: 'food/icons/quick.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'This mellow and herb filled blending of simple ingredients is easy enough to mix that a novice host will feel like a seasoned bartender. Top with crushed basil, shake or stir.',
imagePath: '/food/image7.jpg',
imagePath: 'food/image7.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '3 parts', description: 'Gin'),
......@@ -707,10 +707,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Seared sesame fish',
author: 'Ali Connors',
ingredientsImagePath: '/food/icons/fish.png',
ingredientsImagePath: 'food/icons/fish.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'Cuts of fish like this are perfect for simple searing with bright flavours. Try Sesame seeds on these fillets for crusty skin filled with crunch. For added flavour try dipping in a homemade ponzu sauce - delicious.',
imagePath: '/food/image8.jpg',
imagePath: 'food/image8.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1 ½ lbs', description: 'Thin fish fillets'),
......@@ -728,10 +728,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Herb artichoke',
author: 'Sandra Adams',
ingredientsImagePath: '/food/icons/healthy.png',
ingredientsImagePath: 'food/icons/healthy.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'This tasty and healthy veggie is a favorite. Artichoke like this can be paired with a hearty main or works well as a small meal with some white wine on the side. Simple and fresh, all foodies love tasty artichoke.',
imagePath: '/food/image9.jpg',
imagePath: 'food/image9.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1', description: 'Small garlic clove, peeled'),
......@@ -749,10 +749,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Pesto bruschetta',
author: 'Trevor Hansen',
ingredientsImagePath: '/food/icons/veggie.png',
ingredientsImagePath: 'food/icons/veggie.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'Life is good when you add amazingly warm bread, fresh pesto sauce, and roasted tomatoes to the table. This a classic starter to break out in a pinch. It’s easy to make and extra tasty.',
imagePath: '/food/image10.jpg',
imagePath: 'food/image10.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1 loaf', description: 'Sliced French bread'),
......@@ -772,10 +772,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Garlic bok choy',
author: 'Sandra Adams',
ingredientsImagePath: '/food/icons/spicy.png',
ingredientsImagePath: 'food/icons/spicy.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'Great stir-fried bok choy starts at the market. For me, nothing says tasty like garlic and baby bok choy. Choose fresh, crisp greens. Once home, wash, chop, and then ready for the wok. No family style spread is complete without these greens.',
imagePath: '/food/image11.jpg',
imagePath: 'food/image11.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1/2 cup', description: 'Chick broth'),
......@@ -792,10 +792,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Fresh Fettuccine',
author: 'Ali Connors',
ingredientsImagePath: '/food/icons/main.png',
ingredientsImagePath: 'food/icons/main.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'Satisfy a need for rich, creamy homemade goodness with this classic. Creamy fettuccine alfredo will have you hitting the gym the next day, but it’s so good it’s worth it.',
imagePath: '/food/image12.jpg',
imagePath: 'food/image12.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '¾ cup', description: 'Milk'),
......@@ -813,10 +813,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Sicilian-Style sardines',
author: 'Peter Carlsson',
ingredientsImagePath: '/food/icons/quick.png',
ingredientsImagePath: 'food/icons/quick.png',
ingredientsImagePackage: _kGalleryAssetsPackage,
description: 'My go to way to eat sardines is with a splash of tangy lemon and fresh fennel drizzled on top. The best thing about this dish is the flavour it packs. Prepaid with wild caught sardines or canned.',
imagePath: '/food/image13.jpg',
imagePath: 'food/image13.jpg',
imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1/4 cup', description: 'Dry white wine'),
......
......@@ -8,7 +8,7 @@ const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
const Vendor _ali = const Vendor(
name: 'Ali’s shop',
avatarAsset: '/people/square/ali.png',
avatarAsset: 'people/square/ali.png',
avatarAssetPackage: _kGalleryAssetsPackage,
description:
'Ali Connor’s makes custom goods for folks of all shapes and sizes '
......@@ -18,7 +18,7 @@ const Vendor _ali = const Vendor(
const Vendor _peter = const Vendor(
name: 'Peter’s shop',
avatarAsset: '/people/square/peter.png',
avatarAsset: 'people/square/peter.png',
avatarAssetPackage: _kGalleryAssetsPackage,
description:
'Peter makes great stuff for awesome people like you. Super cool and extra '
......@@ -28,7 +28,7 @@ const Vendor _peter = const Vendor(
const Vendor _sandra = const Vendor(
name: 'Sandra’s shop',
avatarAsset: '/people/square/sandra.png',
avatarAsset: 'people/square/sandra.png',
avatarAssetPackage: _kGalleryAssetsPackage,
description:
'Sandra specializes in furniture, beauty and travel products with a classic vibe. '
......@@ -37,7 +37,7 @@ const Vendor _sandra = const Vendor(
const Vendor _stella = const Vendor(
name: 'Stella’s shop',
avatarAsset: '/people/square/stella.png',
avatarAsset: 'people/square/stella.png',
avatarAssetPackage: _kGalleryAssetsPackage,
description:
'Stella sells awesome stuff at lovely prices. made by hand and sometimes by '
......@@ -47,7 +47,7 @@ const Vendor _stella = const Vendor(
const Vendor _trevor = const Vendor(
name: 'Trevor’s shop',
avatarAsset: '/people/square/trevor.png',
avatarAsset: 'people/square/trevor.png',
avatarAssetPackage: _kGalleryAssetsPackage,
description:
'Trevor makes great stuff for awesome people like you. Super cool and extra '
......@@ -58,7 +58,7 @@ const Vendor _trevor = const Vendor(
const List<Product> _allProducts = const <Product> [
const Product(
name: 'Vintage Brown Belt',
imageAsset: '/products/belt.png',
imageAsset: 'products/belt.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion', 'latest'],
price: 300.00,
......@@ -69,7 +69,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Sunglasses',
imageAsset: '/products/sunnies.png',
imageAsset: 'products/sunnies.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion', 'beauty'],
price: 20.00,
......@@ -82,7 +82,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Flatwear',
imageAsset: '/products/flatwear.png',
imageAsset: 'products/flatwear.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['furniture'],
price: 30.00,
......@@ -92,7 +92,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Salmon Sweater',
imageAsset: '/products/sweater.png',
imageAsset: 'products/sweater.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion'],
price: 300.00,
......@@ -104,7 +104,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Pine Table',
imageAsset: '/products/table.png',
imageAsset: 'products/table.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['furniture'],
price: 63.00,
......@@ -114,7 +114,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Green Comfort Jacket',
imageAsset: '/products/jacket.png',
imageAsset: 'products/jacket.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion'],
price: 36.00,
......@@ -124,7 +124,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Chambray Top',
imageAsset: '/products/top.png',
imageAsset: 'products/top.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion'],
price: 125.00,
......@@ -134,7 +134,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Blue Cup',
imageAsset: '/products/cup.png',
imageAsset: 'products/cup.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'furniture'],
price: 75.00,
......@@ -146,7 +146,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Tea Set',
imageAsset: '/products/teaset.png',
imageAsset: 'products/teaset.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['furniture', 'fashion'],
price: 70.00,
......@@ -161,7 +161,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Blue linen napkins',
imageAsset: '/products/napkins.png',
imageAsset: 'products/napkins.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['furniture', 'fashion'],
price: 89.00,
......@@ -172,7 +172,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Dipped Earrings',
imageAsset: '/products/earrings.png',
imageAsset: 'products/earrings.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion', 'beauty'],
price: 25.00,
......@@ -184,7 +184,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Perfect Planters',
imageAsset: '/products/planters.png',
imageAsset: 'products/planters.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['latest', 'furniture'],
price: 30.00,
......@@ -196,7 +196,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Cloud-White Dress',
imageAsset: '/products/dress.png',
imageAsset: 'products/dress.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion'],
price: 54.00,
......@@ -208,7 +208,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Backpack',
imageAsset: '/products/backpack.png',
imageAsset: 'products/backpack.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion'],
price: 25.00,
......@@ -220,7 +220,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Charcoal Straw Hat',
imageAsset: '/products/hat.png',
imageAsset: 'products/hat.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion', 'latest'],
price: 25.00,
......@@ -232,7 +232,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Ginger Scarf',
imageAsset: '/products/scarf.png',
imageAsset: 'products/scarf.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['latest', 'fashion'],
price: 17.00,
......@@ -242,7 +242,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Blush Sweats',
imageAsset: '/products/sweats.png',
imageAsset: 'products/sweats.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion', 'latest'],
price: 25.00,
......@@ -252,7 +252,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Mint Jumper',
imageAsset: '/products/jumper.png',
imageAsset: 'products/jumper.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion', 'beauty'],
price: 25.00,
......@@ -262,7 +262,7 @@ const List<Product> _allProducts = const <Product> [
),
const Product(
name: 'Ochre Shirt',
imageAsset: '/products/shirt.png',
imageAsset: 'products/shirt.png',
imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>[ 'fashion', 'latest'],
price: 120.00,
......
......@@ -353,7 +353,7 @@ class _VideoDemoState extends State<VideoDemo>
with SingleTickerProviderStateMixin {
final VideoPlayerController butterflyController =
new VideoPlayerController.asset(
'/videos/butterfly.mp4',
'videos/butterfly.mp4',
package: 'flutter_gallery_assets',
);
final VideoPlayerController beeController = new VideoPlayerController.network(
......
......@@ -28,7 +28,7 @@ class _FlutterLogo extends StatelessWidget {
decoration: const BoxDecoration(
image: const DecorationImage(
image: const AssetImage(
'/logos/flutter_white/logo.png',
'logos/flutter_white/logo.png',
package: _kGalleryAssetsPackage,
),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment