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 { ...@@ -59,50 +59,50 @@ class Section {
// image SectionDetails in the allSections list. // image SectionDetails in the allSections list.
const SectionDetail _eyeglassesDetail = const SectionDetail( const SectionDetail _eyeglassesDetail = const SectionDetail(
imageAsset: '/products/sunnies.png', imageAsset: 'products/sunnies.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
title: 'Flutter enables interactive animation', title: 'Flutter enables interactive animation',
subtitle: '3K views - 5 days', subtitle: '3K views - 5 days',
); );
const SectionDetail _eyeglassesImageDetail = const SectionDetail( const SectionDetail _eyeglassesImageDetail = const SectionDetail(
imageAsset: '/products/sunnies.png', imageAsset: 'products/sunnies.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
); );
const SectionDetail _seatingDetail = const SectionDetail( const SectionDetail _seatingDetail = const SectionDetail(
imageAsset: '/products/table.png', imageAsset: 'products/table.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
title: 'Flutter enables interactive animation', title: 'Flutter enables interactive animation',
subtitle: '3K views - 5 days', subtitle: '3K views - 5 days',
); );
const SectionDetail _seatingImageDetail = const SectionDetail( const SectionDetail _seatingImageDetail = const SectionDetail(
imageAsset: '/products/table.png', imageAsset: 'products/table.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
); );
const SectionDetail _decorationDetail = const SectionDetail( const SectionDetail _decorationDetail = const SectionDetail(
imageAsset: '/products/earrings.png', imageAsset: 'products/earrings.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
title: 'Flutter enables interactive animation', title: 'Flutter enables interactive animation',
subtitle: '3K views - 5 days', subtitle: '3K views - 5 days',
); );
const SectionDetail _decorationImageDetail = const SectionDetail( const SectionDetail _decorationImageDetail = const SectionDetail(
imageAsset: '/products/earrings.png', imageAsset: 'products/earrings.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
); );
const SectionDetail _protectionDetail = const SectionDetail( const SectionDetail _protectionDetail = const SectionDetail(
imageAsset: '/products/hat.png', imageAsset: 'products/hat.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
title: 'Flutter enables interactive animation', title: 'Flutter enables interactive animation',
subtitle: '3K views - 5 days', subtitle: '3K views - 5 days',
); );
const SectionDetail _protectionImageDetail = const SectionDetail( const SectionDetail _protectionImageDetail = const SectionDetail(
imageAsset: '/products/hat.png', imageAsset: 'products/hat.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
); );
...@@ -111,7 +111,7 @@ final List<Section> allSections = <Section>[ ...@@ -111,7 +111,7 @@ final List<Section> allSections = <Section>[
title: 'SUNGLASSES', title: 'SUNGLASSES',
leftColor: _mediumPurple, leftColor: _mediumPurple,
rightColor: _mariner, rightColor: _mariner,
backgroundAsset: '/products/sunnies.png', backgroundAsset: 'products/sunnies.png',
backgroundAssetPackage: _kGalleryAssetsPackage, backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[ details: const <SectionDetail>[
_eyeglassesDetail, _eyeglassesDetail,
...@@ -126,7 +126,7 @@ final List<Section> allSections = <Section>[ ...@@ -126,7 +126,7 @@ final List<Section> allSections = <Section>[
title: 'FURNITURE', title: 'FURNITURE',
leftColor: _tomato, leftColor: _tomato,
rightColor: _mediumPurple, rightColor: _mediumPurple,
backgroundAsset: '/products/table.png', backgroundAsset: 'products/table.png',
backgroundAssetPackage: _kGalleryAssetsPackage, backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[ details: const <SectionDetail>[
_seatingDetail, _seatingDetail,
...@@ -141,7 +141,7 @@ final List<Section> allSections = <Section>[ ...@@ -141,7 +141,7 @@ final List<Section> allSections = <Section>[
title: 'JEWELRY', title: 'JEWELRY',
leftColor: _mySin, leftColor: _mySin,
rightColor: _tomato, rightColor: _tomato,
backgroundAsset: '/products/earrings.png', backgroundAsset: 'products/earrings.png',
backgroundAssetPackage: _kGalleryAssetsPackage, backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[ details: const <SectionDetail>[
_decorationDetail, _decorationDetail,
...@@ -156,7 +156,7 @@ final List<Section> allSections = <Section>[ ...@@ -156,7 +156,7 @@ final List<Section> allSections = <Section>[
title: 'HEADWEAR', title: 'HEADWEAR',
leftColor: Colors.white, leftColor: Colors.white,
rightColor: _tomato, rightColor: _tomato,
backgroundAsset: '/products/hat.png', backgroundAsset: 'products/hat.png',
backgroundAssetPackage: _kGalleryAssetsPackage, backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[ details: const <SectionDetail>[
_protectionDetail, _protectionDetail,
......
...@@ -160,7 +160,7 @@ class ContactsDemoState extends State<ContactsDemo> { ...@@ -160,7 +160,7 @@ class ContactsDemoState extends State<ContactsDemo> {
fit: StackFit.expand, fit: StackFit.expand,
children: <Widget>[ children: <Widget>[
new Image.asset( new Image.asset(
'/people/ali_landscape.png', 'people/ali_landscape.png',
package: 'flutter_gallery_assets', package: 'flutter_gallery_assets',
fit: BoxFit.cover, fit: BoxFit.cover,
height: _appBarHeight, height: _appBarHeight,
......
...@@ -507,7 +507,7 @@ class Tab2Header extends StatelessWidget { ...@@ -507,7 +507,7 @@ class Tab2Header extends StatelessWidget {
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: const DecorationImage( image: const DecorationImage(
image: const AssetImage( image: const AssetImage(
'/people/square/trevor.png', 'people/square/trevor.png',
package: _kGalleryAssetsPackage, package: _kGalleryAssetsPackage,
), ),
), ),
...@@ -521,7 +521,7 @@ class Tab2Header extends StatelessWidget { ...@@ -521,7 +521,7 @@ class Tab2Header extends StatelessWidget {
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: const DecorationImage( image: const DecorationImage(
image: const AssetImage( image: const AssetImage(
'/people/square/sandra.png', 'people/square/sandra.png',
package: _kGalleryAssetsPackage, package: _kGalleryAssetsPackage,
), ),
), ),
......
...@@ -17,7 +17,7 @@ class ImagesDemo extends StatelessWidget { ...@@ -17,7 +17,7 @@ class ImagesDemo extends StatelessWidget {
demoWidget: new Semantics( demoWidget: new Semantics(
label: 'Example of animated WEBP', label: 'Example of animated WEBP',
child: new Image.asset( child: new Image.asset(
'/animated_images/animated_flutter_stickers.webp', 'animated_images/animated_flutter_stickers.webp',
package: 'flutter_gallery_assets', package: 'flutter_gallery_assets',
), ),
), ),
...@@ -29,7 +29,7 @@ class ImagesDemo extends StatelessWidget { ...@@ -29,7 +29,7 @@ class ImagesDemo extends StatelessWidget {
demoWidget: new Semantics( demoWidget: new Semantics(
label: 'Example of animated GIF', label: 'Example of animated GIF',
child:new Image.asset( child:new Image.asset(
'/animated_images/animated_flutter_lgtm.gif', 'animated_images/animated_flutter_lgtm.gif',
package: 'flutter_gallery_assets', package: 'flutter_gallery_assets',
), ),
), ),
......
...@@ -22,74 +22,74 @@ const List<Category> allCategories = const <Category>[ ...@@ -22,74 +22,74 @@ const List<Category> allCategories = const <Category>[
const Category( const Category(
title: 'Accessories', title: 'Accessories',
assets: const <String>[ assets: const <String>[
'/products/belt.png', 'products/belt.png',
'/products/earrings.png', 'products/earrings.png',
'/products/backpack.png', 'products/backpack.png',
'/products/hat.png', 'products/hat.png',
'/products/scarf.png', 'products/scarf.png',
'/products/sunnies.png', 'products/sunnies.png',
], ],
), ),
const Category( const Category(
title: 'Blue', title: 'Blue',
assets: const <String>[ assets: const <String>[
'/products/backpack.png', 'products/backpack.png',
'/products/cup.png', 'products/cup.png',
'/products/napkins.png', 'products/napkins.png',
'/products/top.png', 'products/top.png',
], ],
), ),
const Category( const Category(
title: 'Cold Weather', title: 'Cold Weather',
assets: const <String>[ assets: const <String>[
'/products/jacket.png', 'products/jacket.png',
'/products/jumper.png', 'products/jumper.png',
'/products/scarf.png', 'products/scarf.png',
'/products/sweater.png', 'products/sweater.png',
'/products/sweats.png', 'products/sweats.png',
], ],
), ),
const Category( const Category(
title: 'Home', title: 'Home',
assets: const <String>[ assets: const <String>[
'/products/cup.png', 'products/cup.png',
'/products/napkins.png', 'products/napkins.png',
'/products/planters.png', 'products/planters.png',
'/products/table.png', 'products/table.png',
'/products/teaset.png', 'products/teaset.png',
], ],
), ),
const Category( const Category(
title: 'Tops', title: 'Tops',
assets: const <String>[ assets: const <String>[
'/products/jumper.png', 'products/jumper.png',
'/products/shirt.png', 'products/shirt.png',
'/products/sweater.png', 'products/sweater.png',
'/products/top.png', 'products/top.png',
], ],
), ),
const Category( const Category(
title: 'Everything', title: 'Everything',
assets: const <String>[ assets: const <String>[
'/products/backpack.png', 'products/backpack.png',
'/products/belt.png', 'products/belt.png',
'/products/cup.png', 'products/cup.png',
'/products/dress.png', 'products/dress.png',
'/products/earrings.png', 'products/earrings.png',
'/products/flatwear.png', 'products/flatwear.png',
'/products/hat.png', 'products/hat.png',
'/products/jacket.png', 'products/jacket.png',
'/products/jumper.png', 'products/jumper.png',
'/products/napkins.png', 'products/napkins.png',
'/products/planters.png', 'products/planters.png',
'/products/scarf.png', 'products/scarf.png',
'/products/shirt.png', 'products/shirt.png',
'/products/sunnies.png', 'products/sunnies.png',
'/products/sweater.png', 'products/sweater.png',
'/products/sweats.png', 'products/sweats.png',
'/products/table.png', 'products/table.png',
'/products/teaset.png', 'products/teaset.png',
'/products/top.png', 'products/top.png',
], ],
), ),
]; ];
......
...@@ -25,7 +25,7 @@ class TravelDestination { ...@@ -25,7 +25,7 @@ class TravelDestination {
final List<TravelDestination> destinations = <TravelDestination>[ final List<TravelDestination> destinations = <TravelDestination>[
const TravelDestination( const TravelDestination(
assetName: '/places/india_thanjavur_market.png', assetName: 'places/india_thanjavur_market.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Top 10 Cities to Visit in Tamil Nadu', title: 'Top 10 Cities to Visit in Tamil Nadu',
description: const <String>[ description: const <String>[
...@@ -35,7 +35,7 @@ final List<TravelDestination> destinations = <TravelDestination>[ ...@@ -35,7 +35,7 @@ final List<TravelDestination> destinations = <TravelDestination>[
], ],
), ),
const TravelDestination( const TravelDestination(
assetName: '/places/india_chettinad_silk_maker.png', assetName: 'places/india_chettinad_silk_maker.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Artisans of Southern India', title: 'Artisans of Southern India',
description: const <String>[ description: const <String>[
......
...@@ -45,11 +45,11 @@ const List<String> _defaultTools = const <String>[ ...@@ -45,11 +45,11 @@ const List<String> _defaultTools = const <String>[
]; ];
const Map<String, String> _avatars = const <String, String>{ const Map<String, String> _avatars = const <String, String>{
'hammer': '/people/square/ali.png', 'hammer': 'people/square/ali.png',
'chisel': '/people/square/sandra.png', 'chisel': 'people/square/sandra.png',
'fryer': '/people/square/trevor.png', 'fryer': 'people/square/trevor.png',
'fabricator': '/people/square/stella.png', 'fabricator': 'people/square/stella.png',
'customer': '/people/square/peter.png', 'customer': 'people/square/peter.png',
}; };
final Map<String, Set<String>> _toolActions = <String, Set<String>>{ final Map<String, Set<String>> _toolActions = <String, Set<String>>{
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
const String _kAsset0 = '/people/square/trevor.png'; const String _kAsset0 = 'people/square/trevor.png';
const String _kAsset1 = '/people/square/stella.png'; const String _kAsset1 = 'people/square/stella.png';
const String _kAsset2 = '/people/square/sandra.png'; const String _kAsset2 = 'people/square/sandra.png';
const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
class DrawerDemo extends StatefulWidget { class DrawerDemo extends StatefulWidget {
......
...@@ -254,73 +254,73 @@ class GridListDemoState extends State<GridListDemo> { ...@@ -254,73 +254,73 @@ class GridListDemoState extends State<GridListDemo> {
List<Photo> photos = <Photo>[ List<Photo> photos = <Photo>[
new Photo( new Photo(
assetName: '/places/india_chennai_flower_market.png', assetName: 'places/india_chennai_flower_market.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Chennai', title: 'Chennai',
caption: 'Flower Market', caption: 'Flower Market',
), ),
new Photo( new Photo(
assetName: '/places/india_tanjore_bronze_works.png', assetName: 'places/india_tanjore_bronze_works.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore', title: 'Tanjore',
caption: 'Bronze Works', caption: 'Bronze Works',
), ),
new Photo( new Photo(
assetName: '/places/india_tanjore_market_merchant.png', assetName: 'places/india_tanjore_market_merchant.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore', title: 'Tanjore',
caption: 'Market', caption: 'Market',
), ),
new Photo( new Photo(
assetName: '/places/india_tanjore_thanjavur_temple.png', assetName: 'places/india_tanjore_thanjavur_temple.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore', title: 'Tanjore',
caption: 'Thanjavur Temple', caption: 'Thanjavur Temple',
), ),
new Photo( new Photo(
assetName: '/places/india_tanjore_thanjavur_temple_carvings.png', assetName: 'places/india_tanjore_thanjavur_temple_carvings.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore', title: 'Tanjore',
caption: 'Thanjavur Temple', caption: 'Thanjavur Temple',
), ),
new Photo( new Photo(
assetName: '/places/india_pondicherry_salt_farm.png', assetName: 'places/india_pondicherry_salt_farm.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Pondicherry', title: 'Pondicherry',
caption: 'Salt Farm', caption: 'Salt Farm',
), ),
new Photo( new Photo(
assetName: '/places/india_chennai_highway.png', assetName: 'places/india_chennai_highway.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Chennai', title: 'Chennai',
caption: 'Scooters', caption: 'Scooters',
), ),
new Photo( new Photo(
assetName: '/places/india_chettinad_silk_maker.png', assetName: 'places/india_chettinad_silk_maker.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Chettinad', title: 'Chettinad',
caption: 'Silk Maker', caption: 'Silk Maker',
), ),
new Photo( new Photo(
assetName: '/places/india_chettinad_produce.png', assetName: 'places/india_chettinad_produce.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Chettinad', title: 'Chettinad',
caption: 'Lunch Prep', caption: 'Lunch Prep',
), ),
new Photo( new Photo(
assetName: '/places/india_tanjore_market_technology.png', assetName: 'places/india_tanjore_market_technology.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Tanjore', title: 'Tanjore',
caption: 'Market', caption: 'Market',
), ),
new Photo( new Photo(
assetName: '/places/india_pondicherry_beach.png', assetName: 'places/india_pondicherry_beach.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Pondicherry', title: 'Pondicherry',
caption: 'Beach', caption: 'Beach',
), ),
new Photo( new Photo(
assetName: '/places/india_pondicherry_fisherman.png', assetName: 'places/india_pondicherry_fisherman.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Pondicherry', title: 'Pondicherry',
caption: 'Fisherman', caption: 'Fisherman',
......
...@@ -104,7 +104,7 @@ class _SearchDemoState extends State<SearchDemo> { ...@@ -104,7 +104,7 @@ class _SearchDemoState extends State<SearchDemo> {
accountEmail: const Text('peter.widget@example.com'), accountEmail: const Text('peter.widget@example.com'),
currentAccountPicture: const CircleAvatar( currentAccountPicture: const CircleAvatar(
backgroundImage: const AssetImage( backgroundImage: const AssetImage(
'/people/square/peter.png', 'people/square/peter.png',
package: 'flutter_gallery_assets', package: 'flutter_gallery_assets',
), ),
), ),
......
...@@ -28,64 +28,64 @@ final Map<_Page, List<_CardData>> _allPages = <_Page, List<_CardData>>{ ...@@ -28,64 +28,64 @@ final Map<_Page, List<_CardData>> _allPages = <_Page, List<_CardData>>{
new _Page(label: 'HOME'): <_CardData>[ new _Page(label: 'HOME'): <_CardData>[
const _CardData( const _CardData(
title: 'Flatwear', title: 'Flatwear',
imageAsset: '/products/flatwear.png', imageAsset: 'products/flatwear.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Pine Table', title: 'Pine Table',
imageAsset: '/products/table.png', imageAsset: 'products/table.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Blue Cup', title: 'Blue Cup',
imageAsset: '/products/cup.png', imageAsset: 'products/cup.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Tea Set', title: 'Tea Set',
imageAsset: '/products/teaset.png', imageAsset: 'products/teaset.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Desk Set', title: 'Desk Set',
imageAsset: '/products/deskset.png', imageAsset: 'products/deskset.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Blue Linen Napkins', title: 'Blue Linen Napkins',
imageAsset: '/products/napkins.png', imageAsset: 'products/napkins.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Planters', title: 'Planters',
imageAsset: '/products/planters.png', imageAsset: 'products/planters.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Kitchen Quattro', title: 'Kitchen Quattro',
imageAsset: '/products/kitchen_quattro.png', imageAsset: 'products/kitchen_quattro.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Platter', title: 'Platter',
imageAsset: '/products/platter.png', imageAsset: 'products/platter.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
], ],
new _Page(label: 'APPAREL'): <_CardData>[ new _Page(label: 'APPAREL'): <_CardData>[
const _CardData( const _CardData(
title: 'Cloud-White Dress', title: 'Cloud-White Dress',
imageAsset: '/products/dress.png', imageAsset: 'products/dress.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Ginger Scarf', title: 'Ginger Scarf',
imageAsset: '/products/scarf.png', imageAsset: 'products/scarf.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Blush Sweats', title: 'Blush Sweats',
imageAsset: '/products/sweats.png', imageAsset: 'products/sweats.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
], ],
......
...@@ -15,7 +15,7 @@ class PestoDemo extends StatelessWidget { ...@@ -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 String _kGalleryAssetsPackage = 'flutter_gallery_assets';
const double _kAppBarHeight = 128.0; const double _kAppBarHeight = 128.0;
const double _kFabHalfSize = 28.0; // TODO(mpcomplete): needs to adapt to screen size const double _kFabHalfSize = 28.0; // TODO(mpcomplete): needs to adapt to screen size
...@@ -571,10 +571,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -571,10 +571,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Pesto Bruschetta', name: 'Pesto Bruschetta',
author: 'Peter Carlsson', author: 'Peter Carlsson',
ingredientsImagePath: '/food/icons/quick.png', ingredientsImagePath: 'food/icons/quick.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '6 pieces', description: 'Mozzarella cheese'), const RecipeIngredient(amount: '6 pieces', description: 'Mozzarella cheese'),
...@@ -591,10 +591,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -591,10 +591,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Rustic purple mash', name: 'Rustic purple mash',
author: 'Trevor Hansen', author: 'Trevor Hansen',
ingredientsImagePath: '/food/icons/veggie.png', ingredientsImagePath: 'food/icons/veggie.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '2 lbs', description: 'Purple potatoes, skin on'), const RecipeIngredient(amount: '2 lbs', description: 'Purple potatoes, skin on'),
...@@ -611,10 +611,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -611,10 +611,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Bacon Sprouts', name: 'Bacon Sprouts',
author: 'Ali Connors', author: 'Ali Connors',
ingredientsImagePath: '/food/icons/main.png', ingredientsImagePath: 'food/icons/main.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '2 lbs', description: 'Brussel sprouts'), const RecipeIngredient(amount: '2 lbs', description: 'Brussel sprouts'),
...@@ -632,10 +632,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -632,10 +632,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Oven Sausage', name: 'Oven Sausage',
author: 'Sandra Adams', author: 'Sandra Adams',
ingredientsImagePath: '/food/icons/meat.png', ingredientsImagePath: 'food/icons/meat.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1 1/2 lbs', description: 'Linguisa'), const RecipeIngredient(amount: '1 1/2 lbs', description: 'Linguisa'),
...@@ -649,10 +649,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -649,10 +649,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Chicken tostadas', name: 'Chicken tostadas',
author: 'Peter Carlsson', author: 'Peter Carlsson',
ingredientsImagePath: '/food/icons/spicy.png', ingredientsImagePath: 'food/icons/spicy.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '4-6', description: 'Small corn tortillas'), const RecipeIngredient(amount: '4-6', description: 'Small corn tortillas'),
...@@ -668,10 +668,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -668,10 +668,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Coconut rice', name: 'Coconut rice',
author: 'Ali Connors', author: 'Ali Connors',
ingredientsImagePath: '/food/icons/healthy.png', ingredientsImagePath: 'food/icons/healthy.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '2 cups', description: 'Jasmine rice'), const RecipeIngredient(amount: '2 cups', description: 'Jasmine rice'),
...@@ -688,10 +688,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -688,10 +688,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Gin basil cocktail', name: 'Gin basil cocktail',
author: 'Trevor Hansen', author: 'Trevor Hansen',
ingredientsImagePath: '/food/icons/quick.png', ingredientsImagePath: 'food/icons/quick.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '3 parts', description: 'Gin'), const RecipeIngredient(amount: '3 parts', description: 'Gin'),
...@@ -707,10 +707,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -707,10 +707,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Seared sesame fish', name: 'Seared sesame fish',
author: 'Ali Connors', author: 'Ali Connors',
ingredientsImagePath: '/food/icons/fish.png', ingredientsImagePath: 'food/icons/fish.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1 ½ lbs', description: 'Thin fish fillets'), const RecipeIngredient(amount: '1 ½ lbs', description: 'Thin fish fillets'),
...@@ -728,10 +728,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -728,10 +728,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Herb artichoke', name: 'Herb artichoke',
author: 'Sandra Adams', author: 'Sandra Adams',
ingredientsImagePath: '/food/icons/healthy.png', ingredientsImagePath: 'food/icons/healthy.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1', description: 'Small garlic clove, peeled'), const RecipeIngredient(amount: '1', description: 'Small garlic clove, peeled'),
...@@ -749,10 +749,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -749,10 +749,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Pesto bruschetta', name: 'Pesto bruschetta',
author: 'Trevor Hansen', author: 'Trevor Hansen',
ingredientsImagePath: '/food/icons/veggie.png', ingredientsImagePath: 'food/icons/veggie.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1 loaf', description: 'Sliced French bread'), const RecipeIngredient(amount: '1 loaf', description: 'Sliced French bread'),
...@@ -772,10 +772,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -772,10 +772,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Garlic bok choy', name: 'Garlic bok choy',
author: 'Sandra Adams', author: 'Sandra Adams',
ingredientsImagePath: '/food/icons/spicy.png', ingredientsImagePath: 'food/icons/spicy.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1/2 cup', description: 'Chick broth'), const RecipeIngredient(amount: '1/2 cup', description: 'Chick broth'),
...@@ -792,10 +792,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -792,10 +792,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Fresh Fettuccine', name: 'Fresh Fettuccine',
author: 'Ali Connors', author: 'Ali Connors',
ingredientsImagePath: '/food/icons/main.png', ingredientsImagePath: 'food/icons/main.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '¾ cup', description: 'Milk'), const RecipeIngredient(amount: '¾ cup', description: 'Milk'),
...@@ -813,10 +813,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[ ...@@ -813,10 +813,10 @@ const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe( const Recipe(
name: 'Sicilian-Style sardines', name: 'Sicilian-Style sardines',
author: 'Peter Carlsson', author: 'Peter Carlsson',
ingredientsImagePath: '/food/icons/quick.png', ingredientsImagePath: 'food/icons/quick.png',
ingredientsImagePackage: _kGalleryAssetsPackage, 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.', 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, imagePackage: _kGalleryAssetsPackage,
ingredients: const<RecipeIngredient>[ ingredients: const<RecipeIngredient>[
const RecipeIngredient(amount: '1/4 cup', description: 'Dry white wine'), const RecipeIngredient(amount: '1/4 cup', description: 'Dry white wine'),
......
...@@ -8,7 +8,7 @@ const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; ...@@ -8,7 +8,7 @@ const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
const Vendor _ali = const Vendor( const Vendor _ali = const Vendor(
name: 'Ali’s shop', name: 'Ali’s shop',
avatarAsset: '/people/square/ali.png', avatarAsset: 'people/square/ali.png',
avatarAssetPackage: _kGalleryAssetsPackage, avatarAssetPackage: _kGalleryAssetsPackage,
description: description:
'Ali Connor’s makes custom goods for folks of all shapes and sizes ' 'Ali Connor’s makes custom goods for folks of all shapes and sizes '
...@@ -18,7 +18,7 @@ const Vendor _ali = const Vendor( ...@@ -18,7 +18,7 @@ const Vendor _ali = const Vendor(
const Vendor _peter = const Vendor( const Vendor _peter = const Vendor(
name: 'Peter’s shop', name: 'Peter’s shop',
avatarAsset: '/people/square/peter.png', avatarAsset: 'people/square/peter.png',
avatarAssetPackage: _kGalleryAssetsPackage, avatarAssetPackage: _kGalleryAssetsPackage,
description: description:
'Peter makes great stuff for awesome people like you. Super cool and extra ' 'Peter makes great stuff for awesome people like you. Super cool and extra '
...@@ -28,7 +28,7 @@ const Vendor _peter = const Vendor( ...@@ -28,7 +28,7 @@ const Vendor _peter = const Vendor(
const Vendor _sandra = const Vendor( const Vendor _sandra = const Vendor(
name: 'Sandra’s shop', name: 'Sandra’s shop',
avatarAsset: '/people/square/sandra.png', avatarAsset: 'people/square/sandra.png',
avatarAssetPackage: _kGalleryAssetsPackage, avatarAssetPackage: _kGalleryAssetsPackage,
description: description:
'Sandra specializes in furniture, beauty and travel products with a classic vibe. ' 'Sandra specializes in furniture, beauty and travel products with a classic vibe. '
...@@ -37,7 +37,7 @@ const Vendor _sandra = const Vendor( ...@@ -37,7 +37,7 @@ const Vendor _sandra = const Vendor(
const Vendor _stella = const Vendor( const Vendor _stella = const Vendor(
name: 'Stella’s shop', name: 'Stella’s shop',
avatarAsset: '/people/square/stella.png', avatarAsset: 'people/square/stella.png',
avatarAssetPackage: _kGalleryAssetsPackage, avatarAssetPackage: _kGalleryAssetsPackage,
description: description:
'Stella sells awesome stuff at lovely prices. made by hand and sometimes by ' 'Stella sells awesome stuff at lovely prices. made by hand and sometimes by '
...@@ -47,7 +47,7 @@ const Vendor _stella = const Vendor( ...@@ -47,7 +47,7 @@ const Vendor _stella = const Vendor(
const Vendor _trevor = const Vendor( const Vendor _trevor = const Vendor(
name: 'Trevor’s shop', name: 'Trevor’s shop',
avatarAsset: '/people/square/trevor.png', avatarAsset: 'people/square/trevor.png',
avatarAssetPackage: _kGalleryAssetsPackage, avatarAssetPackage: _kGalleryAssetsPackage,
description: description:
'Trevor makes great stuff for awesome people like you. Super cool and extra ' 'Trevor makes great stuff for awesome people like you. Super cool and extra '
...@@ -58,7 +58,7 @@ const Vendor _trevor = const Vendor( ...@@ -58,7 +58,7 @@ const Vendor _trevor = const Vendor(
const List<Product> _allProducts = const <Product> [ const List<Product> _allProducts = const <Product> [
const Product( const Product(
name: 'Vintage Brown Belt', name: 'Vintage Brown Belt',
imageAsset: '/products/belt.png', imageAsset: 'products/belt.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion', 'latest'], categories: const <String>['fashion', 'latest'],
price: 300.00, price: 300.00,
...@@ -69,7 +69,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -69,7 +69,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Sunglasses', name: 'Sunglasses',
imageAsset: '/products/sunnies.png', imageAsset: 'products/sunnies.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion', 'beauty'], categories: const <String>['travel', 'fashion', 'beauty'],
price: 20.00, price: 20.00,
...@@ -82,7 +82,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -82,7 +82,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Flatwear', name: 'Flatwear',
imageAsset: '/products/flatwear.png', imageAsset: 'products/flatwear.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['furniture'], categories: const <String>['furniture'],
price: 30.00, price: 30.00,
...@@ -92,7 +92,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -92,7 +92,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Salmon Sweater', name: 'Salmon Sweater',
imageAsset: '/products/sweater.png', imageAsset: 'products/sweater.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion'], categories: const <String>['fashion'],
price: 300.00, price: 300.00,
...@@ -104,7 +104,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -104,7 +104,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Pine Table', name: 'Pine Table',
imageAsset: '/products/table.png', imageAsset: 'products/table.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['furniture'], categories: const <String>['furniture'],
price: 63.00, price: 63.00,
...@@ -114,7 +114,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -114,7 +114,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Green Comfort Jacket', name: 'Green Comfort Jacket',
imageAsset: '/products/jacket.png', imageAsset: 'products/jacket.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion'], categories: const <String>['fashion'],
price: 36.00, price: 36.00,
...@@ -124,7 +124,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -124,7 +124,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Chambray Top', name: 'Chambray Top',
imageAsset: '/products/top.png', imageAsset: 'products/top.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion'], categories: const <String>['fashion'],
price: 125.00, price: 125.00,
...@@ -134,7 +134,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -134,7 +134,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Blue Cup', name: 'Blue Cup',
imageAsset: '/products/cup.png', imageAsset: 'products/cup.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'furniture'], categories: const <String>['travel', 'furniture'],
price: 75.00, price: 75.00,
...@@ -146,7 +146,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -146,7 +146,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Tea Set', name: 'Tea Set',
imageAsset: '/products/teaset.png', imageAsset: 'products/teaset.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['furniture', 'fashion'], categories: const <String>['furniture', 'fashion'],
price: 70.00, price: 70.00,
...@@ -161,7 +161,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -161,7 +161,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Blue linen napkins', name: 'Blue linen napkins',
imageAsset: '/products/napkins.png', imageAsset: 'products/napkins.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['furniture', 'fashion'], categories: const <String>['furniture', 'fashion'],
price: 89.00, price: 89.00,
...@@ -172,7 +172,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -172,7 +172,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Dipped Earrings', name: 'Dipped Earrings',
imageAsset: '/products/earrings.png', imageAsset: 'products/earrings.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion', 'beauty'], categories: const <String>['fashion', 'beauty'],
price: 25.00, price: 25.00,
...@@ -184,7 +184,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -184,7 +184,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Perfect Planters', name: 'Perfect Planters',
imageAsset: '/products/planters.png', imageAsset: 'products/planters.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['latest', 'furniture'], categories: const <String>['latest', 'furniture'],
price: 30.00, price: 30.00,
...@@ -196,7 +196,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -196,7 +196,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Cloud-White Dress', name: 'Cloud-White Dress',
imageAsset: '/products/dress.png', imageAsset: 'products/dress.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['fashion'], categories: const <String>['fashion'],
price: 54.00, price: 54.00,
...@@ -208,7 +208,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -208,7 +208,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Backpack', name: 'Backpack',
imageAsset: '/products/backpack.png', imageAsset: 'products/backpack.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion'], categories: const <String>['travel', 'fashion'],
price: 25.00, price: 25.00,
...@@ -220,7 +220,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -220,7 +220,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Charcoal Straw Hat', name: 'Charcoal Straw Hat',
imageAsset: '/products/hat.png', imageAsset: 'products/hat.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion', 'latest'], categories: const <String>['travel', 'fashion', 'latest'],
price: 25.00, price: 25.00,
...@@ -232,7 +232,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -232,7 +232,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Ginger Scarf', name: 'Ginger Scarf',
imageAsset: '/products/scarf.png', imageAsset: 'products/scarf.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['latest', 'fashion'], categories: const <String>['latest', 'fashion'],
price: 17.00, price: 17.00,
...@@ -242,7 +242,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -242,7 +242,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Blush Sweats', name: 'Blush Sweats',
imageAsset: '/products/sweats.png', imageAsset: 'products/sweats.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion', 'latest'], categories: const <String>['travel', 'fashion', 'latest'],
price: 25.00, price: 25.00,
...@@ -252,7 +252,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -252,7 +252,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Mint Jumper', name: 'Mint Jumper',
imageAsset: '/products/jumper.png', imageAsset: 'products/jumper.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>['travel', 'fashion', 'beauty'], categories: const <String>['travel', 'fashion', 'beauty'],
price: 25.00, price: 25.00,
...@@ -262,7 +262,7 @@ const List<Product> _allProducts = const <Product> [ ...@@ -262,7 +262,7 @@ const List<Product> _allProducts = const <Product> [
), ),
const Product( const Product(
name: 'Ochre Shirt', name: 'Ochre Shirt',
imageAsset: '/products/shirt.png', imageAsset: 'products/shirt.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
categories: const <String>[ 'fashion', 'latest'], categories: const <String>[ 'fashion', 'latest'],
price: 120.00, price: 120.00,
......
...@@ -353,7 +353,7 @@ class _VideoDemoState extends State<VideoDemo> ...@@ -353,7 +353,7 @@ class _VideoDemoState extends State<VideoDemo>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
final VideoPlayerController butterflyController = final VideoPlayerController butterflyController =
new VideoPlayerController.asset( new VideoPlayerController.asset(
'/videos/butterfly.mp4', 'videos/butterfly.mp4',
package: 'flutter_gallery_assets', package: 'flutter_gallery_assets',
); );
final VideoPlayerController beeController = new VideoPlayerController.network( final VideoPlayerController beeController = new VideoPlayerController.network(
......
...@@ -28,7 +28,7 @@ class _FlutterLogo extends StatelessWidget { ...@@ -28,7 +28,7 @@ class _FlutterLogo extends StatelessWidget {
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: const DecorationImage( image: const DecorationImage(
image: const AssetImage( image: const AssetImage(
'/logos/flutter_white/logo.png', 'logos/flutter_white/logo.png',
package: _kGalleryAssetsPackage, 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