From 326caa5d22e01637f3612a2c73960aee01a8e75c Mon Sep 17 00:00:00 2001 From: Will Larche Date: Sat, 9 Jun 2018 03:39:27 -0400 Subject: [PATCH] [Gallery] Updated assets and copy (#18324) --- dev/benchmarks/complex_layout/lib/main.dart | 12 +- dev/benchmarks/complex_layout/pubspec.yaml | 12 +- .../lib/demo/animation/sections.dart | 32 +-- .../lib/demo/contacts_demo.dart | 4 +- .../cupertino/cupertino_navigation_demo.dart | 8 +- .../flutter_gallery/lib/demo/images_demo.dart | 14 +- .../lib/demo/material/backdrop_demo.dart | 114 +++++----- .../lib/demo/material/cards_demo.dart | 18 +- .../lib/demo/material/chip_demo.dart | 10 +- .../lib/demo/material/drawer_demo.dart | 10 +- .../lib/demo/material/grid_list_demo.dart | 72 +++---- .../lib/demo/material/search_demo.dart | 6 +- .../lib/demo/material/tabs_demo.dart | 54 ++--- .../flutter_gallery/lib/demo/pesto_demo.dart | 54 ++--- .../lib/demo/shrine/shrine_data.dart | 202 ++++++++---------- .../flutter_gallery/lib/demo/video_demo.dart | 2 +- .../flutter_gallery/lib/gallery/home.dart | 2 +- examples/flutter_gallery/pubspec.yaml | 184 ++++++++-------- 18 files changed, 396 insertions(+), 414 deletions(-) diff --git a/dev/benchmarks/complex_layout/lib/main.dart b/dev/benchmarks/complex_layout/lib/main.dart index 9d2e9173cbd..7ed7b12abcf 100644 --- a/dev/benchmarks/complex_layout/lib/main.dart +++ b/dev/benchmarks/complex_layout/lib/main.dart @@ -352,7 +352,7 @@ class UserHeader extends StatelessWidget { const Padding( padding: const EdgeInsets.only(right: 8.0), child: const Image( - image: const AssetImage('packages/flutter_gallery_assets/ali_connors_sml.png'), + image: const AssetImage('packages/flutter_gallery_assets/people/square/ali.png'), width: 32.0, height: 32.0 ) @@ -410,7 +410,7 @@ class ItemImageBox extends StatelessWidget { const SizedBox( height: 230.0, child: const Image( - image: const AssetImage('packages/flutter_gallery_assets/top_10_australian_beaches.png') + image: const AssetImage('packages/flutter_gallery_assets/places/india_chettinad_silk_maker.png') ) ), new Theme( @@ -447,7 +447,7 @@ class ItemImageBox extends StatelessWidget { ), const TextSpan( style: const TextStyle(fontWeight: FontWeight.bold), - text: 'Magic Mike' + text: 'Chris Godley' ) ] ) @@ -462,9 +462,9 @@ class ItemImageBox extends StatelessWidget { child: new Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - new Text('Where can you find that amazing sunset?', style: Theme.of(context).textTheme.body2), - new Text('The sun sets over stinson beach', style: Theme.of(context).textTheme.body1), - new Text('flutter.io/amazingsunsets', style: Theme.of(context).textTheme.caption) + new Text('Artisans of Southern India', style: Theme.of(context).textTheme.body2), + new Text('Silk Spinners', style: Theme.of(context).textTheme.body1), + new Text('Sivaganga, Tamil Nadu', style: Theme.of(context).textTheme.caption) ] ) ) diff --git a/dev/benchmarks/complex_layout/pubspec.yaml b/dev/benchmarks/complex_layout/pubspec.yaml index 5d817375c45..68ef064e30d 100644 --- a/dev/benchmarks/complex_layout/pubspec.yaml +++ b/dev/benchmarks/complex_layout/pubspec.yaml @@ -8,10 +8,7 @@ dependencies: sdk: flutter # Also examples/flutter_gallery/pubspec.yaml - flutter_gallery_assets: - git: - url: https://flutter.googlesource.com/gallery-assets - ref: 43590e625ab1b07f6a5809287ce16f7e61d9e165 + flutter_gallery_assets: 0.1.3 async: 2.0.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" charcode: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" @@ -75,8 +72,7 @@ dev_dependencies: flutter: uses-material-design: true assets: - - packages/flutter_gallery_assets/ali_connors.png - - packages/flutter_gallery_assets/ali_connors_sml.png - - packages/flutter_gallery_assets/top_10_australian_beaches.png + - packages/flutter_gallery_assets/people/square/ali.png + - packages/flutter_gallery_assets/places/india_chettinad_silk_maker.png -# PUBSPEC CHECKSUM: 45b1 +# PUBSPEC CHECKSUM: 89f2 diff --git a/examples/flutter_gallery/lib/demo/animation/sections.dart b/examples/flutter_gallery/lib/demo/animation/sections.dart index a57d4554f01..4f008661f29 100644 --- a/examples/flutter_gallery/lib/demo/animation/sections.dart +++ b/examples/flutter_gallery/lib/demo/animation/sections.dart @@ -59,59 +59,59 @@ class Section { // image SectionDetails in the allSections list. const SectionDetail _eyeglassesDetail = const SectionDetail( - imageAsset: 'shrine/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: 'shrine/products/sunnies.png', + imageAsset: '/products/sunnies.png', imageAssetPackage: _kGalleryAssetsPackage, ); const SectionDetail _seatingDetail = const SectionDetail( - imageAsset: 'shrine/products/lawn_chair.png', + imageAsset: '/products/table.png', imageAssetPackage: _kGalleryAssetsPackage, title: 'Flutter enables interactive animation', subtitle: '3K views - 5 days', ); const SectionDetail _seatingImageDetail = const SectionDetail( - imageAsset: 'shrine/products/lawn_chair.png', + imageAsset: '/products/table.png', imageAssetPackage: _kGalleryAssetsPackage, ); const SectionDetail _decorationDetail = const SectionDetail( - imageAsset: 'shrine/products/lipstick.png', + imageAsset: '/products/earrings.png', imageAssetPackage: _kGalleryAssetsPackage, title: 'Flutter enables interactive animation', subtitle: '3K views - 5 days', ); const SectionDetail _decorationImageDetail = const SectionDetail( - imageAsset: 'shrine/products/lipstick.png', + imageAsset: '/products/earrings.png', imageAssetPackage: _kGalleryAssetsPackage, ); const SectionDetail _protectionDetail = const SectionDetail( - imageAsset: 'shrine/products/helmet.png', + imageAsset: '/products/hat.png', imageAssetPackage: _kGalleryAssetsPackage, title: 'Flutter enables interactive animation', subtitle: '3K views - 5 days', ); const SectionDetail _protectionImageDetail = const SectionDetail( - imageAsset: 'shrine/products/helmet.png', + imageAsset: '/products/hat.png', imageAssetPackage: _kGalleryAssetsPackage, ); final List
allSections =
[ const Section( - title: 'EYEGLASSES', + title: 'SUNGLASSES', leftColor: _mediumPurple, rightColor: _mariner, - backgroundAsset: 'shrine/products/sunnies.png', + backgroundAsset: '/products/sunnies.png', backgroundAssetPackage: _kGalleryAssetsPackage, details: const [ _eyeglassesDetail, @@ -123,10 +123,10 @@ final List
allSections =
[ ], ), const Section( - title: 'SEATING', + title: 'FURNITURE', leftColor: _tomato, rightColor: _mediumPurple, - backgroundAsset: 'shrine/products/lawn_chair.png', + backgroundAsset: '/products/table.png', backgroundAssetPackage: _kGalleryAssetsPackage, details: const [ _seatingDetail, @@ -138,10 +138,10 @@ final List
allSections =
[ ], ), const Section( - title: 'DECORATION', + title: 'JEWELRY', leftColor: _mySin, rightColor: _tomato, - backgroundAsset: 'shrine/products/lipstick.png', + backgroundAsset: '/products/earrings.png', backgroundAssetPackage: _kGalleryAssetsPackage, details: const [ _decorationDetail, @@ -153,10 +153,10 @@ final List
allSections =
[ ], ), const Section( - title: 'PROTECTION', + title: 'HEADWEAR', leftColor: Colors.white, rightColor: _tomato, - backgroundAsset: 'shrine/products/helmet.png', + backgroundAsset: '/products/hat.png', backgroundAssetPackage: _kGalleryAssetsPackage, details: const [ _protectionDetail, diff --git a/examples/flutter_gallery/lib/demo/contacts_demo.dart b/examples/flutter_gallery/lib/demo/contacts_demo.dart index 5b5d7f2ebad..b29ae0c8cb0 100644 --- a/examples/flutter_gallery/lib/demo/contacts_demo.dart +++ b/examples/flutter_gallery/lib/demo/contacts_demo.dart @@ -160,7 +160,7 @@ class ContactsDemoState extends State { fit: StackFit.expand, children: [ new Image.asset( - 'ali_connors.jpg', + '/people/ali_landscape.png', package: 'flutter_gallery_assets', fit: BoxFit.cover, height: _appBarHeight, @@ -328,7 +328,7 @@ class ContactsDemoState extends State { new _ContactItem( lines: const [ 'Last day in office', - 'August 9th, 2015', + 'August 9th, 2018', ], ), ], diff --git a/examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart b/examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart index d757a1dd772..88d441b005b 100644 --- a/examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart +++ b/examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart @@ -507,8 +507,8 @@ class Tab2Header extends StatelessWidget { decoration: const BoxDecoration( image: const DecorationImage( image: const AssetImage( - 'cupertino_navigation/person1.jpg', - package: _kGalleryAssetsPackage + '/people/square/trevor.png', + package: _kGalleryAssetsPackage, ), ), shape: BoxShape.circle, @@ -521,8 +521,8 @@ class Tab2Header extends StatelessWidget { decoration: const BoxDecoration( image: const DecorationImage( image: const AssetImage( - 'cupertino_navigation/person2.jpg', - package: _kGalleryAssetsPackage + '/people/square/sandra.png', + package: _kGalleryAssetsPackage, ), ), shape: BoxShape.circle, diff --git a/examples/flutter_gallery/lib/demo/images_demo.dart b/examples/flutter_gallery/lib/demo/images_demo.dart index 0b4e00be57d..02d98074f2e 100644 --- a/examples/flutter_gallery/lib/demo/images_demo.dart +++ b/examples/flutter_gallery/lib/demo/images_demo.dart @@ -11,21 +11,27 @@ class ImagesDemo extends StatelessWidget { title: 'Animated images', demos: [ new ComponentDemoTabData( - tabName: 'ANIMATED WEBP', + tabName: 'WEBP', description: '', exampleCodeTag: 'animated_image', demoWidget: new Semantics( label: 'Example of animated WEBP', - child: new Image.asset('packages/flutter_gallery_assets/animated_flutter_stickers.webp'), + child: new Image.asset( + '/animated_images/animated_flutter_stickers.webp', + package: 'flutter_gallery_assets', + ), ), ), new ComponentDemoTabData( - tabName: 'ANIMATED GIF', + tabName: 'GIF', description: '', exampleCodeTag: 'animated_image', demoWidget: new Semantics( label: 'Example of animated GIF', - child:new Image.asset('packages/flutter_gallery_assets/animated_flutter_lgtm.gif'), + child:new Image.asset( + '/animated_images/animated_flutter_lgtm.gif', + package: 'flutter_gallery_assets', + ), ), ), ] diff --git a/examples/flutter_gallery/lib/demo/material/backdrop_demo.dart b/examples/flutter_gallery/lib/demo/material/backdrop_demo.dart index 700ff29b22e..28793c03242 100644 --- a/examples/flutter_gallery/lib/demo/material/backdrop_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/backdrop_demo.dart @@ -19,73 +19,77 @@ class Category { } const List allCategories = const [ + const Category( + title: 'Accessories', + assets: const [ + '/products/belt.png', + '/products/earrings.png', + '/products/backpack.png', + '/products/hat.png', + '/products/scarf.png', + '/products/sunnies.png', + ], + ), + const Category( + title: 'Blue', + assets: const [ + '/products/backpack.png', + '/products/cup.png', + '/products/napkins.png', + '/products/top.png', + ], + ), + const Category( + title: 'Cold Weather', + assets: const [ + '/products/jacket.png', + '/products/jumper.png', + '/products/scarf.png', + '/products/sweater.png', + '/products/sweats.png', + ], + ), const Category( title: 'Home', assets: const [ - 'shrine/products/clock.png', - 'shrine/products/teapot.png', - 'shrine/products/radio.png', - 'shrine/products/lawn_chair.png', - 'shrine/products/chair.png', + '/products/cup.png', + '/products/napkins.png', + '/products/planters.png', + '/products/table.png', + '/products/teaset.png', ], ), const Category( - title: 'Red', + title: 'Tops', assets: const [ - 'shrine/products/popsicle.png', - 'shrine/products/brush.png', - 'shrine/products/lipstick.png', - 'shrine/products/backpack.png', - ], - ), - const Category( - title: 'Sport', - assets: const [ - 'shrine/products/helmet.png', - 'shrine/products/beachball.png', - 'shrine/products/flippers.png', - 'shrine/products/surfboard.png', - ], - ), - const Category( - title: 'Shoes', - assets: const [ - 'shrine/products/chucks.png', - 'shrine/products/green-shoes.png', - 'shrine/products/heels.png', - 'shrine/products/flippers.png', - ], - ), - const Category( - title: 'Vision', - assets: const [ - 'shrine/products/sunnies.png', - 'shrine/products/binoculars.png', - 'shrine/products/fish_bowl.png', + '/products/jumper.png', + '/products/shirt.png', + '/products/sweater.png', + '/products/top.png', ], ), const Category( title: 'Everything', assets: const [ - 'shrine/products/radio.png', - 'shrine/products/sunnies.png', - 'shrine/products/clock.png', - 'shrine/products/popsicle.png', - 'shrine/products/lawn_chair.png', - 'shrine/products/chair.png', - 'shrine/products/heels.png', - 'shrine/products/green-shoes.png', - 'shrine/products/teapot.png', - 'shrine/products/chucks.png', - 'shrine/products/brush.png', - 'shrine/products/fish_bowl.png', - 'shrine/products/lipstick.png', - 'shrine/products/backpack.png', - 'shrine/products/helmet.png', - 'shrine/products/beachball.png', - 'shrine/products/binoculars.png', - 'shrine/products/flippers.png', - 'shrine/products/surfboard.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', ], ), ]; diff --git a/examples/flutter_gallery/lib/demo/material/cards_demo.dart b/examples/flutter_gallery/lib/demo/material/cards_demo.dart index 09435cf3bbb..88687589cd1 100644 --- a/examples/flutter_gallery/lib/demo/material/cards_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/cards_demo.dart @@ -25,23 +25,23 @@ class TravelDestination { final List destinations = [ const TravelDestination( - assetName: 'top_10_australian_beaches.jpg', + assetName: '/places/india_thanjavur_market.png', assetPackage: _kGalleryAssetsPackage, - title: 'Top 10 Australian beaches', + title: 'Top 10 Cities to Visit in Tamil Nadu', description: const [ 'Number 10', - 'Whitehaven Beach', - 'Whitsunday Island, Whitsunday Islands', + 'Thanjavur', + 'Thanjavur, Tamil Nadu', ], ), const TravelDestination( - assetName: 'kangaroo_valley_safari.jpg', + assetName: '/places/india_chettinad_silk_maker.png', assetPackage: _kGalleryAssetsPackage, - title: 'Kangaroo Valley Safari', + title: 'Artisans of Southern India', description: const [ - '2031 Moss Vale Road', - 'Kangaroo Valley 2577', - 'New South Wales', + 'Silk Spinners', + 'Chettinad', + 'Sivaganga, Tamil Nadu', ], ) ]; diff --git a/examples/flutter_gallery/lib/demo/material/chip_demo.dart b/examples/flutter_gallery/lib/demo/material/chip_demo.dart index fef353213a7..4bf79a6d42b 100644 --- a/examples/flutter_gallery/lib/demo/material/chip_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/chip_demo.dart @@ -45,11 +45,11 @@ const List _defaultTools = const [ ]; const Map _avatars = const { - 'hammer': 'shrine/vendors/ali-connors.png', - 'chisel': 'shrine/vendors/sandra-adams.jpg', - 'fryer': 'shrine/vendors/zach.jpg', - 'fabricator': 'shrine/vendors/peter-carlsson.png', - 'customer': 'shrine/vendors/16c477b.jpg', + '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> _toolActions = >{ diff --git a/examples/flutter_gallery/lib/demo/material/drawer_demo.dart b/examples/flutter_gallery/lib/demo/material/drawer_demo.dart index e3db2f779fb..79e681b8acd 100644 --- a/examples/flutter_gallery/lib/demo/material/drawer_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/drawer_demo.dart @@ -4,9 +4,9 @@ import 'package:flutter/material.dart'; -const String _kAsset0 = 'shrine/vendors/zach.jpg'; -const String _kAsset1 = 'shrine/vendors/16c477b.jpg'; -const String _kAsset2 = 'shrine/vendors/sandra-adams.jpg'; +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 { @@ -92,8 +92,8 @@ class _DrawerDemoState extends State with TickerProviderStateMixin { child: new Column( children: [ new UserAccountsDrawerHeader( - accountName: const Text('Zach Widget'), - accountEmail: const Text('zach.widget@example.com'), + accountName: const Text('Trevor Widget'), + accountEmail: const Text('trevor.widget@example.com'), currentAccountPicture: const CircleAvatar( backgroundImage: const AssetImage( _kAsset0, diff --git a/examples/flutter_gallery/lib/demo/material/grid_list_demo.dart b/examples/flutter_gallery/lib/demo/material/grid_list_demo.dart index 95cc2953740..2fa233f94d1 100644 --- a/examples/flutter_gallery/lib/demo/material/grid_list_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/grid_list_demo.dart @@ -254,76 +254,76 @@ class GridListDemoState extends State { List photos = [ new Photo( - assetName: 'landscape_0.jpg', + assetName: '/places/india_chennai_flower_market.png', assetPackage: _kGalleryAssetsPackage, - title: 'Philippines', - caption: 'Batad rice terraces', + title: 'Chennai', + caption: 'Flower Market', ), new Photo( - assetName: 'landscape_1.jpg', + assetName: '/places/india_tanjore_bronze_works.png', assetPackage: _kGalleryAssetsPackage, - title: 'Italy', - caption: 'Ceresole Reale', + title: 'Tanjore', + caption: 'Bronze Works', ), new Photo( - assetName: 'landscape_2.jpg', + assetName: '/places/india_tanjore_market_merchant.png', assetPackage: _kGalleryAssetsPackage, - title: 'Somewhere', - caption: 'Beautiful mountains', + title: 'Tanjore', + caption: 'Market', ), new Photo( - assetName: 'landscape_3.jpg', + assetName: '/places/india_tanjore_thanjavur_temple.png', assetPackage: _kGalleryAssetsPackage, - title: 'A place', - caption: 'Beautiful hills', + title: 'Tanjore', + caption: 'Thanjavur Temple', ), new Photo( - assetName: 'landscape_4.jpg', + assetName: '/places/india_tanjore_thanjavur_temple_carvings.png', assetPackage: _kGalleryAssetsPackage, - title: 'New Zealand', - caption: 'View from the van', + title: 'Tanjore', + caption: 'Thanjavur Temple', ), new Photo( - assetName: 'landscape_5.jpg', + assetName: '/places/india_pondicherry_salt_farm.png', assetPackage: _kGalleryAssetsPackage, - title: 'Autumn', - caption: 'The golden season', + title: 'Pondicherry', + caption: 'Salt Farm', ), new Photo( - assetName: 'landscape_6.jpg', + assetName: '/places/india_chennai_highway.png', assetPackage: _kGalleryAssetsPackage, - title: 'Germany', - caption: 'Englischer Garten', + title: 'Chennai', + caption: 'Scooters', ), new Photo( - assetName: 'landscape_7.jpg', + assetName: '/places/india_chettinad_silk_maker.png', assetPackage: _kGalleryAssetsPackage, - title: 'A country', - caption: 'Grass fields', + title: 'Chettinad', + caption: 'Silk Maker', ), new Photo( - assetName: 'landscape_8.jpg', + assetName: '/places/india_chettinad_produce.png', assetPackage: _kGalleryAssetsPackage, - title: 'Mountain country', - caption: 'River forest', + title: 'Chettinad', + caption: 'Lunch Prep', ), new Photo( - assetName: 'landscape_9.jpg', + assetName: '/places/india_tanjore_market_technology.png', assetPackage: _kGalleryAssetsPackage, - title: 'Alpine place', - caption: 'Green hills', + title: 'Tanjore', + caption: 'Market', ), new Photo( - assetName: 'landscape_10.jpg', + assetName: '/places/india_pondicherry_beach.png', assetPackage: _kGalleryAssetsPackage, - title: 'Desert land', - caption: 'Blue skies', + title: 'Pondicherry', + caption: 'Beach', ), new Photo( - assetName: 'landscape_11.jpg', + assetName: '/places/india_pondicherry_fisherman.png', assetPackage: _kGalleryAssetsPackage, - title: 'Narnia', - caption: 'Rocks and rivers', + title: 'Pondicherry', + caption: 'Fisherman', ), ]; diff --git a/examples/flutter_gallery/lib/demo/material/search_demo.dart b/examples/flutter_gallery/lib/demo/material/search_demo.dart index 285c2354293..46ac4e1f9b2 100644 --- a/examples/flutter_gallery/lib/demo/material/search_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/search_demo.dart @@ -100,11 +100,11 @@ class _SearchDemoState extends State { child: new Column( children: [ const UserAccountsDrawerHeader( - accountName: const Text('Zach Widget'), - accountEmail: const Text('zach.widget@example.com'), + accountName: const Text('Peter Widget'), + accountEmail: const Text('peter.widget@example.com'), currentAccountPicture: const CircleAvatar( backgroundImage: const AssetImage( - 'shrine/vendors/zach.jpg', + '/people/square/peter.png', package: 'flutter_gallery_assets', ), ), diff --git a/examples/flutter_gallery/lib/demo/material/tabs_demo.dart b/examples/flutter_gallery/lib/demo/material/tabs_demo.dart index fab2c9592a1..945ab78d615 100644 --- a/examples/flutter_gallery/lib/demo/material/tabs_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/tabs_demo.dart @@ -25,67 +25,67 @@ class _CardData { } final Map<_Page, List<_CardData>> _allPages = <_Page, List<_CardData>>{ - new _Page(label: 'LEFT'): <_CardData>[ + new _Page(label: 'HOME'): <_CardData>[ const _CardData( - title: 'Vintage Bluetooth Radio', - imageAsset: 'shrine/products/radio.png', + title: 'Flatwear', + imageAsset: '/products/flatwear.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Sunglasses', - imageAsset: 'shrine/products/sunnies.png', + title: 'Pine Table', + imageAsset: '/products/table.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Clock', - imageAsset: 'shrine/products/clock.png', + title: 'Blue Cup', + imageAsset: '/products/cup.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Red popsicle', - imageAsset: 'shrine/products/popsicle.png', + title: 'Tea Set', + imageAsset: '/products/teaset.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Folding Chair', - imageAsset: 'shrine/products/lawn_chair.png', + title: 'Desk Set', + imageAsset: '/products/deskset.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Green comfort chair', - imageAsset: 'shrine/products/chair.png', + title: 'Blue Linen Napkins', + imageAsset: '/products/napkins.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Old Binoculars', - imageAsset: 'shrine/products/binoculars.png', + title: 'Planters', + imageAsset: '/products/planters.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Teapot', - imageAsset: 'shrine/products/teapot.png', + title: 'Kitchen Quattro', + imageAsset: '/products/kitchen_quattro.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Blue suede shoes', - imageAsset: 'shrine/products/chucks.png', + title: 'Platter', + imageAsset: '/products/platter.png', imageAssetPackage: _kGalleryAssetsPackage, ), ], - new _Page(label: 'RIGHT'): <_CardData>[ + new _Page(label: 'APPAREL'): <_CardData>[ const _CardData( - title: 'Beachball', - imageAsset: 'shrine/products/beachball.png', + title: 'Cloud-White Dress', + imageAsset: '/products/dress.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Dipped Brush', - imageAsset: 'shrine/products/brush.png', + title: 'Ginger Scarf', + imageAsset: '/products/scarf.png', imageAssetPackage: _kGalleryAssetsPackage, ), const _CardData( - title: 'Perfect Goldfish Bowl', - imageAsset: 'shrine/products/fish_bowl.png', + title: 'Blush Sweats', + imageAsset: '/products/sweats.png', imageAssetPackage: _kGalleryAssetsPackage, ), ], @@ -108,7 +108,7 @@ class _CardDataItem extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.start, children: [ new Align( - alignment: page.id == 'L' + alignment: page.id == 'H' ? Alignment.centerLeft : Alignment.centerRight, child: new CircleAvatar(child: new Text('${page.id}')), diff --git a/examples/flutter_gallery/lib/demo/pesto_demo.dart b/examples/flutter_gallery/lib/demo/pesto_demo.dart index b12bc8aacb9..b23acb0e8df 100644 --- a/examples/flutter_gallery/lib/demo/pesto_demo.dart +++ b/examples/flutter_gallery/lib/demo/pesto_demo.dart @@ -15,7 +15,7 @@ class PestoDemo extends StatelessWidget { } -const String _kSmallLogoImage = '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 kPestoRecipes = const [ const Recipe( name: 'Pesto Bruschetta', author: 'Peter Carlsson', - ingredientsImagePath: 'pesto/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: 'pesto/image1.jpg', + imagePath: '/food/image1.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '6 pieces', description: 'Mozzarella cheese'), @@ -591,10 +591,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Rustic purple mash', author: 'Trevor Hansen', - ingredientsImagePath: 'pesto/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: 'pesto/image2.jpg', + imagePath: '/food/image2.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '2 lbs', description: 'Purple potatoes, skin on'), @@ -611,10 +611,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Bacon Sprouts', author: 'Ali Connors', - ingredientsImagePath: 'pesto/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: 'pesto/image3.jpg', + imagePath: '/food/image3.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '2 lbs', description: 'Brussel sprouts'), @@ -632,10 +632,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Oven Sausage', author: 'Sandra Adams', - ingredientsImagePath: 'pesto/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: 'pesto/image4.jpg', + imagePath: '/food/image4.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '1 1/2 lbs', description: 'Linguisa'), @@ -649,10 +649,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Chicken tostadas', author: 'Peter Carlsson', - ingredientsImagePath: 'pesto/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: 'pesto/image5.jpg', + imagePath: '/food/image5.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '4-6', description: 'Small corn tortillas'), @@ -668,10 +668,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Coconut rice', author: 'Ali Connors', - ingredientsImagePath: 'pesto/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: 'pesto/image6.jpg', + imagePath: '/food/image6.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '2 cups', description: 'Jasmine rice'), @@ -688,10 +688,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Gin basil cocktail', author: 'Trevor Hansen', - ingredientsImagePath: 'pesto/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: 'pesto/image7.jpg', + imagePath: '/food/image7.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '3 parts', description: 'Gin'), @@ -707,10 +707,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Seared sesame fish', author: 'Ali Connors', - ingredientsImagePath: 'pesto/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: 'pesto/image8.jpg', + imagePath: '/food/image8.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '1 ½ lbs', description: 'Thin fish fillets'), @@ -728,10 +728,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Herb artichoke', author: 'Sandra Adams', - ingredientsImagePath: 'pesto/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: 'pesto/image9.jpg', + imagePath: '/food/image9.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '1', description: 'Small garlic clove, peeled'), @@ -749,10 +749,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Pesto bruschetta', author: 'Trevor Hansen', - ingredientsImagePath: 'pesto/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: 'pesto/image10.jpg', + imagePath: '/food/image10.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '1 loaf', description: 'Sliced French bread'), @@ -772,10 +772,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Garlic bok choy', author: 'Sandra Adams', - ingredientsImagePath: 'pesto/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: 'pesto/image11.jpg', + imagePath: '/food/image11.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '1/2 cup', description: 'Chick broth'), @@ -792,10 +792,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Fresh Fettuccine', author: 'Ali Connors', - ingredientsImagePath: 'pesto/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: 'pesto/image12.jpg', + imagePath: '/food/image12.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '¾ cup', description: 'Milk'), @@ -813,10 +813,10 @@ const List kPestoRecipes = const [ const Recipe( name: 'Sicilian-Style sardines', author: 'Peter Carlsson', - ingredientsImagePath: 'pesto/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: 'pesto/image13.jpg', + imagePath: '/food/image13.jpg', imagePackage: _kGalleryAssetsPackage, ingredients: const[ const RecipeIngredient(amount: '1/4 cup', description: 'Dry white wine'), diff --git a/examples/flutter_gallery/lib/demo/shrine/shrine_data.dart b/examples/flutter_gallery/lib/demo/shrine/shrine_data.dart index 8da116de87f..c5b2932fa36 100644 --- a/examples/flutter_gallery/lib/demo/shrine/shrine_data.dart +++ b/examples/flutter_gallery/lib/demo/shrine/shrine_data.dart @@ -8,7 +8,7 @@ const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; const Vendor _ali = const Vendor( name: 'Ali’s shop', - avatarAsset: 'shrine/vendors/ali-connors.png', + avatarAsset: '/people/square/ali.png', avatarAssetPackage: _kGalleryAssetsPackage, description: 'Ali Connor’s makes custom goods for folks of all shapes and sizes ' @@ -16,28 +16,9 @@ const Vendor _ali = const Vendor( 'Custom orders are available upon request if you need something extra special.' ); -const Vendor _sandra = const Vendor( - name: 'Sandra’s shop', - avatarAsset: 'shrine/vendors/sandra-adams.jpg', - avatarAssetPackage: _kGalleryAssetsPackage, - description: - 'Sandra specializes in furniture, beauty and travel products with a classic vibe. ' - 'Custom orders are available if you’re looking for a certain color or material.' -); - -const Vendor _trevor = const Vendor( - name: 'Trevor’s shop', - avatarAsset: 'shrine/vendors/zach.jpg', - avatarAssetPackage: _kGalleryAssetsPackage, - description: - 'Trevor makes great stuff for awesome people like you. Super cool and extra ' - 'awesome all of his shop’s goods are handmade with love. Custom orders are ' - 'available upon request if you need something extra special.' -); - const Vendor _peter = const Vendor( name: 'Peter’s shop', - avatarAsset: 'shrine/vendors/peter-carlsson.png', + avatarAsset: '/people/square/peter.png', avatarAssetPackage: _kGalleryAssetsPackage, description: 'Peter makes great stuff for awesome people like you. Super cool and extra ' @@ -45,9 +26,18 @@ const Vendor _peter = const Vendor( 'available upon request if you need something extra special.' ); +const Vendor _sandra = const Vendor( + name: 'Sandra’s shop', + avatarAsset: '/people/square/sandra.png', + avatarAssetPackage: _kGalleryAssetsPackage, + description: + 'Sandra specializes in furniture, beauty and travel products with a classic vibe. ' + 'Custom orders are available if you’re looking for a certain color or material.' +); + const Vendor _stella = const Vendor( name: 'Stella’s shop', - avatarAsset: 'shrine/vendors/16c477b.jpg', + avatarAsset: '/people/square/stella.png', avatarAssetPackage: _kGalleryAssetsPackage, description: 'Stella sells awesome stuff at lovely prices. made by hand and sometimes by ' @@ -55,22 +45,31 @@ const Vendor _stella = const Vendor( 'if you need something extra special.' ); +const Vendor _trevor = const Vendor( + name: 'Trevor’s shop', + avatarAsset: '/people/square/trevor.png', + avatarAssetPackage: _kGalleryAssetsPackage, + description: + 'Trevor makes great stuff for awesome people like you. Super cool and extra ' + 'awesome all of his shop’s goods are handmade with love. Custom orders are ' + 'available upon request if you need something extra special.' +); + const List _allProducts = const [ const Product( - name: 'Vintage Bluetooth Radio', - imageAsset: 'shrine/products/radio.png', + name: 'Vintage Brown Belt', + imageAsset: '/products/belt.png', imageAssetPackage: _kGalleryAssetsPackage, - categories: const ['furniture', 'latest'], + categories: const ['fashion', 'latest'], price: 300.00, vendor: _sandra, description: 'Isn’t it cool when things look old, but they\'re not. Looks Old But Not makes ' - 'awesome vintage goods that are super smart. This ol’ radio just got an upgrade. ' - 'Connect to it with an app and jam out to some top forty.' + 'awesome vintage goods that are super smart. This ol’ belt just got an upgrade. ' ), const Product( name: 'Sunglasses', - imageAsset: 'shrine/products/sunnies.png', + imageAsset: '/products/sunnies.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['travel', 'fashion', 'beauty'], price: 20.00, @@ -82,32 +81,30 @@ const List _allProducts = const [ 'look cool, wear them.' ), const Product( - name: 'Clock', - imageAsset: 'shrine/products/clock.png', + name: 'Flatwear', + imageAsset: '/products/flatwear.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['furniture'], price: 30.00, vendor: _trevor, description: - 'Timekeeper Co makes clocks that tell time precisely. Clock is ' - 'very simple to use, set the time using your phone, hang it, and viola! ' - 'You’ll never be late again.' + 'Leave the tunnel and the rain is fallin amazing things happen when you wait' ), const Product( - name: 'Red popsicle', - imageAsset: 'shrine/products/popsicle.png', + name: 'Salmon Sweater', + imageAsset: '/products/sweater.png', imageAssetPackage: _kGalleryAssetsPackage, - categories: const ['food', 'fashion'], + categories: const ['fashion'], price: 300.00, vendor: _stella, description: - 'Looks can be deceiving. This red popsicle comes in a wide variety of ' - 'flavors, including strawberry, that burst as soon as they hit your mouth. ' - 'Red popsicles melt slowly, so savor the flavor.' + 'Looks can be deceiving. This sweater comes in a wide variety of ' + 'flavors, including salmon, that pop as soon as they hit your eyes. ' + 'Sweaters heat quickly, so savor the warmth.' ), const Product( - name: 'Folding Chair', - imageAsset: 'shrine/products/lawn_chair.png', + name: 'Pine Table', + imageAsset: '/products/table.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['furniture'], price: 63.00, @@ -116,18 +113,18 @@ const List _allProducts = const [ 'Leave the tunnel and the rain is fallin amazing things happen when you wait' ), const Product( - name: 'Green comfort chair', - imageAsset: 'shrine/products/chair.png', + name: 'Green Comfort Jacket', + imageAsset: '/products/jacket.png', imageAssetPackage: _kGalleryAssetsPackage, - categories: const ['furniture'], + categories: const ['fashion'], price: 36.00, vendor: _ali, description: 'Leave the tunnel and the rain is fallin amazing things happen when you wait' ), const Product( - name: 'Better wearing heels', - imageAsset: 'shrine/products/heels.png', + name: 'Chambray Top', + imageAsset: '/products/top.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['fashion'], price: 125.00, @@ -136,82 +133,82 @@ const List _allProducts = const [ 'Leave the tunnel and the rain is fallin amazing things happen when you wait' ), const Product( - name: 'Green Slip-ons', - imageAsset: 'shrine/products/green-shoes.png', + name: 'Blue Cup', + imageAsset: '/products/cup.png', imageAssetPackage: _kGalleryAssetsPackage, - categories: const ['travel', 'fashion'], + categories: const ['travel', 'furniture'], price: 75.00, vendor: _sandra, description: - 'Feetsy has been making extraordinary slip-ons for decades. With each pair ' - 'of shoes purchased Feetsy donates a pair to those in need. Buy yourself a pair, ' - 'buy someone else a pair. Very Comfortable.' + 'Drinksy has been making extraordinary mugs for decades. With each ' + 'cup purchased Drinksy donates a cup to those in need. Buy yourself a mug, ' + 'buy someone else a mug.' ), const Product( - name: 'Teapot', - imageAsset: 'shrine/products/teapot.png', + name: 'Tea Set', + imageAsset: '/products/teaset.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['furniture', 'fashion'], price: 70.00, vendor: _trevor, - featureTitle: 'Beautiful little teapot', + featureTitle: 'Beautiful glass teapot', featureDescription: - 'Leave the tunnel and the rain is fallin amazing things happen when you wait', + 'Teapot holds extremely hot liquids and pours them from the spout.', description: - 'Impress your guests with Teapot by Kitchen Stuff. Teapot holds extremely ' - 'hot liquids and pours them from the spout. Use the handle, shown on the left, ' + 'Impress your guests with Tea Set by Kitchen Stuff. Teapot holds extremely ' + 'hot liquids and pours them from the spout. Use the handle, shown on the right, ' 'so your fingers don’t get burnt while pouring.' ), const Product( - name: 'Blue suede shoes', - imageAsset: 'shrine/products/chucks.png', + name: 'Blue linen napkins', + imageAsset: '/products/napkins.png', imageAssetPackage: _kGalleryAssetsPackage, - categories: const ['travel', 'fashion'], + categories: const ['furniture', 'fashion'], price: 89.00, vendor: _trevor, description: - 'Who needs pants when you have shoes! Blue suede shoes were meant to go ' - 'dancing in, so you may want to pick up a few of these. These things are stylish.' + 'Blue linen napkins were meant to go with friends, so you may want to pick ' + 'up a bunch of these. These things are absorbant.' ), const Product( - name: 'Dipped Brush', - imageAsset: 'shrine/products/brush.png', + name: 'Dipped Earrings', + imageAsset: '/products/earrings.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['fashion', 'beauty'], price: 25.00, vendor: _stella, description: - 'WeDipIt does it again. This handle dipped 4 inch brush is a perfect for ' - 'painting 4 inch lines, or coloring in big areas with paint. Just be sure you ' - 'don’t drop it in a bucket of red paint, then it won’t look dipped anymore.' + 'WeDipIt does it again. These hand-dipped 4 inch earrings are perfect for ' + 'the office or the beach. Just be sure you don’t drop it in a bucket of ' + 'red paint, then they won’t look dipped anymore.' ), const Product( - name: 'Perfect Goldfish Bowl', - imageAsset: 'shrine/products/fish_bowl.png', + name: 'Perfect Planters', + imageAsset: '/products/planters.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['latest', 'furniture'], price: 30.00, vendor: _ali, description: - 'The Perfect Bowl Co makes the best bowls for just about anything you can ' - 'think of. This Perfect Goldfish Bowl holds water and fish perfectly. Looks ' - 'great in living rooms. Keep out of reach from cats.' + 'The Perfect Planter Co makes the best vessels for just about anything you ' + 'can pot. This set of Perfect Planters holds succulents and cuttings perfectly. ' + 'Looks great in any room. Keep out of reach from cats.' ), const Product( - name: 'Red Lipstick Set', - imageAsset: 'shrine/products/lipstick.png', + name: 'Cloud-White Dress', + imageAsset: '/products/dress.png', imageAssetPackage: _kGalleryAssetsPackage, - categories: const ['fashion', 'beauty'], + categories: const ['fashion'], price: 54.00, vendor: _sandra, description: - 'Trying to find the perfect shade to match your mood? Try no longer. Red ' - 'Lipstick Set by StickLips has you covered for those nights when you need ' + 'Trying to find the perfect outift to match your mood? Try no longer. ' + 'This Cloud-White Dress has you covered for those nights when you need ' 'to get out, or even if you’re just headed to work.' ), const Product( name: 'Backpack', - imageAsset: 'shrine/products/backpack.png', + imageAsset: '/products/backpack.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['travel', 'fashion'], price: 25.00, @@ -222,65 +219,56 @@ const List _allProducts = const [ 'sunglasses, gym clothes, shoes, gloves, two kittens, and even lunch!' ), const Product( - name: 'Half Shield Helmet', - imageAsset: 'shrine/products/helmet.png', + name: 'Charcoal Straw Hat', + imageAsset: '/products/hat.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['travel', 'fashion', 'latest'], price: 25.00, vendor: _ali, description: - 'Half Shield is the right helmet for those warm summer days on the road. ' - 'Dot approved, these helmets have been rigorously tested. Keep that noggin ' - 'protected.' + 'This is the helmet for those warm summer days on the road. ' + 'Jetset approved, these hats have been rigorously tested. Keep that face ' + 'protected from the sun.' ), const Product( - name: 'Beachball', - imageAsset: 'shrine/products/beachball.png', + name: 'Ginger Scarf', + imageAsset: '/products/scarf.png', imageAssetPackage: _kGalleryAssetsPackage, - categories: const ['latest'], + categories: const ['latest', 'fashion'], price: 17.00, vendor: _peter, description: - 'Are you at a baseball game and feeling bored? At a pool party and looking ' - 'for a laugh? Do you need something to take your anger out on? Beachball, ' - 'by inflatable fun, is the perfect outlet.' + 'Leave the tunnel and the rain is fallin amazing things happen when you wait' ), const Product( - name: 'Old Binoculars', - imageAsset: 'shrine/products/binoculars.png', + name: 'Blush Sweats', + imageAsset: '/products/sweats.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['travel', 'fashion', 'latest'], price: 25.00, vendor: _stella, description: - 'These Binoculars by See Through are amazing and can make things that are ' - 'really far away seem like they’re right in front of you. Bring them to the ' - 'beach. Now you can buy the cheap seats at the big game and feel like you’re ' - 'right in the action.' + 'Leave the tunnel and the rain is fallin amazing things happen when you wait' ), const Product( - name: 'Lime Flippers', - imageAsset: 'shrine/products/flippers.png', + name: 'Mint Jumper', + imageAsset: '/products/jumper.png', imageAssetPackage: _kGalleryAssetsPackage, categories: const ['travel', 'fashion', 'beauty'], price: 25.00, vendor: _peter, description: - 'Flippers are a nice tool to have when you’re being chased by an oversized ' - 'sea turtle. Never get caught again with these fast water shoes. You’re like ' - 'a fish, but more graceful.' + 'Leave the tunnel and the rain is fallin amazing things happen when you wait' ), const Product( - name: 'Surfboard', - imageAsset: 'shrine/products/surfboard.png', + name: 'Ochre Shirt', + imageAsset: '/products/shirt.png', imageAssetPackage: _kGalleryAssetsPackage, - categories: const [ 'travel', 'latest'], + categories: const [ 'fashion', 'latest'], price: 120.00, vendor: _stella, description: - 'Who says you can’t walk on water? With Surfboard, by Surfboard Supply, ' - 'you can fly on water. This beast is fast and handles like a Porsche. ' - 'Hang Ten Bro!' + 'Leave the tunnel and the rain is fallin amazing things happen when you wait' ) ]; diff --git a/examples/flutter_gallery/lib/demo/video_demo.dart b/examples/flutter_gallery/lib/demo/video_demo.dart index d24c596d2a3..ced6b5cecc1 100644 --- a/examples/flutter_gallery/lib/demo/video_demo.dart +++ b/examples/flutter_gallery/lib/demo/video_demo.dart @@ -353,7 +353,7 @@ class _VideoDemoState extends State with SingleTickerProviderStateMixin { final VideoPlayerController butterflyController = new VideoPlayerController.asset( - 'videos/butterfly.mp4', + '/videos/butterfly.mp4', package: 'flutter_gallery_assets', ); final VideoPlayerController beeController = new VideoPlayerController.network( diff --git a/examples/flutter_gallery/lib/gallery/home.dart b/examples/flutter_gallery/lib/gallery/home.dart index 6cb7c6568d3..8b7795b82b1 100644 --- a/examples/flutter_gallery/lib/gallery/home.dart +++ b/examples/flutter_gallery/lib/gallery/home.dart @@ -28,7 +28,7 @@ class _FlutterLogo extends StatelessWidget { decoration: const BoxDecoration( image: const DecorationImage( image: const AssetImage( - 'white_logo/logo.png', + '/logos/flutter_white/logo.png', package: _kGalleryAssetsPackage, ), ), diff --git a/examples/flutter_gallery/pubspec.yaml b/examples/flutter_gallery/pubspec.yaml index 0401a2ff2d2..e45ca020657 100644 --- a/examples/flutter_gallery/pubspec.yaml +++ b/examples/flutter_gallery/pubspec.yaml @@ -12,10 +12,7 @@ dependencies: video_player: 0.5.1 # Also update dev/benchmarks/complex_layout/pubspec.yaml - flutter_gallery_assets: - git: - url: https://flutter.googlesource.com/gallery-assets - ref: 43590e625ab1b07f6a5809287ce16f7e61d9e165 + flutter_gallery_assets: 0.1.3 charcode: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" meta: 1.1.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" @@ -83,130 +80,121 @@ flutter: uses-material-design: true assets: - lib/gallery/example_code.dart - - packages/flutter_gallery_assets/white_logo/logo.png + - packages/flutter_gallery_assets/people/ali_landscape.png + - packages/flutter_gallery_assets/logos/flutter_white/logo.png + - packages/flutter_gallery_assets/videos/bee.mp4 - packages/flutter_gallery_assets/videos/butterfly.mp4 - - packages/flutter_gallery_assets/animated_flutter_lgtm.gif - - packages/flutter_gallery_assets/animated_flutter_stickers.webp - - packages/flutter_gallery_assets/appbar_background.jpg - - packages/flutter_gallery_assets/appbar/appbar_background_layer0.png - - packages/flutter_gallery_assets/appbar/appbar_background_layer1.png - - packages/flutter_gallery_assets/appbar/appbar_background_layer2.png - - packages/flutter_gallery_assets/appbar/appbar_background_layer3.png - - packages/flutter_gallery_assets/appbar/appbar_background_layer4.png - - packages/flutter_gallery_assets/appbar/appbar_background_layer5.png - - packages/flutter_gallery_assets/pesto/avatar.jpg - - packages/flutter_gallery_assets/pesto/image10.jpg - - packages/flutter_gallery_assets/pesto/image11.jpg - - packages/flutter_gallery_assets/pesto/image12.jpg - - packages/flutter_gallery_assets/pesto/image13.jpg - - packages/flutter_gallery_assets/pesto/image1.jpg - - packages/flutter_gallery_assets/pesto/image2.jpg - - packages/flutter_gallery_assets/pesto/image3.jpg - - packages/flutter_gallery_assets/pesto/image4.jpg - - packages/flutter_gallery_assets/pesto/image5.jpg - - packages/flutter_gallery_assets/pesto/image6.jpg - - packages/flutter_gallery_assets/pesto/image7.jpg - - packages/flutter_gallery_assets/pesto/image8.jpg - - packages/flutter_gallery_assets/pesto/image9.jpg - - packages/flutter_gallery_assets/pesto/logo_small.png - - packages/flutter_gallery_assets/pesto/logo_medium.png - - packages/flutter_gallery_assets/pesto/fish.png - - packages/flutter_gallery_assets/pesto/healthy.png - - packages/flutter_gallery_assets/pesto/main.png - - packages/flutter_gallery_assets/pesto/meat.png - - packages/flutter_gallery_assets/pesto/quick.png - - packages/flutter_gallery_assets/pesto/spicy.png - - packages/flutter_gallery_assets/pesto/veggie.png - - packages/flutter_gallery_assets/about_logo.png - - packages/flutter_gallery_assets/ali_connors.jpg - - packages/flutter_gallery_assets/drawer_logo.png - - packages/flutter_gallery_assets/kangaroo_valley_safari.jpg - - packages/flutter_gallery_assets/top_10_australian_beaches.jpg - - packages/flutter_gallery_assets/landscape_0.jpg - - packages/flutter_gallery_assets/landscape_1.jpg - - packages/flutter_gallery_assets/landscape_2.jpg - - packages/flutter_gallery_assets/landscape_3.jpg - - packages/flutter_gallery_assets/landscape_4.jpg - - packages/flutter_gallery_assets/landscape_5.jpg - - packages/flutter_gallery_assets/landscape_6.jpg - - packages/flutter_gallery_assets/landscape_7.jpg - - packages/flutter_gallery_assets/landscape_8.jpg - - packages/flutter_gallery_assets/landscape_9.jpg - - packages/flutter_gallery_assets/landscape_10.jpg - - packages/flutter_gallery_assets/landscape_11.jpg - - packages/flutter_gallery_assets/shrine/products/backpack.png - - packages/flutter_gallery_assets/shrine/products/beachball.png - - packages/flutter_gallery_assets/shrine/products/binoculars.png - - packages/flutter_gallery_assets/shrine/products/brush.png - - packages/flutter_gallery_assets/shrine/products/chair.png - - packages/flutter_gallery_assets/shrine/products/chucks.png - - packages/flutter_gallery_assets/shrine/products/clock.png - - packages/flutter_gallery_assets/shrine/products/fish_bowl.png - - packages/flutter_gallery_assets/shrine/products/flippers.png - - packages/flutter_gallery_assets/shrine/products/green-shoes.png - - packages/flutter_gallery_assets/shrine/products/heels.png - - packages/flutter_gallery_assets/shrine/products/helmet.png - - packages/flutter_gallery_assets/shrine/products/lawn_chair.png - - packages/flutter_gallery_assets/shrine/products/lipstick.png - - packages/flutter_gallery_assets/shrine/products/popsicle.png - - packages/flutter_gallery_assets/shrine/products/radio.png - - packages/flutter_gallery_assets/shrine/products/sunnies.png - - packages/flutter_gallery_assets/shrine/products/surfboard.png - - packages/flutter_gallery_assets/shrine/products/teapot.png - - packages/flutter_gallery_assets/shrine/vendors/16c477b.jpg - - packages/flutter_gallery_assets/shrine/vendors/ali-connors.png - - packages/flutter_gallery_assets/shrine/vendors/peter-carlsson.png - - packages/flutter_gallery_assets/shrine/vendors/sandra-adams.jpg - - packages/flutter_gallery_assets/shrine/vendors/zach.jpg - - packages/flutter_gallery_assets/cupertino_navigation/person1.jpg - - packages/flutter_gallery_assets/cupertino_navigation/person2.jpg + - packages/flutter_gallery_assets/animated_images/animated_flutter_lgtm.gif + - packages/flutter_gallery_assets/animated_images/animated_flutter_stickers.webp + - packages/flutter_gallery_assets/food/image10.jpg + - packages/flutter_gallery_assets/food/image11.jpg + - packages/flutter_gallery_assets/food/image12.jpg + - packages/flutter_gallery_assets/food/image13.jpg + - packages/flutter_gallery_assets/food/image1.jpg + - packages/flutter_gallery_assets/food/image2.jpg + - packages/flutter_gallery_assets/food/image3.jpg + - packages/flutter_gallery_assets/food/image4.jpg + - packages/flutter_gallery_assets/food/image5.jpg + - packages/flutter_gallery_assets/food/image6.jpg + - packages/flutter_gallery_assets/food/image7.jpg + - packages/flutter_gallery_assets/food/image8.jpg + - packages/flutter_gallery_assets/food/image9.jpg + - packages/flutter_gallery_assets/food/icons/fish.png + - packages/flutter_gallery_assets/food/icons/healthy.png + - packages/flutter_gallery_assets/food/icons/main.png + - packages/flutter_gallery_assets/food/icons/meat.png + - packages/flutter_gallery_assets/food/icons/quick.png + - packages/flutter_gallery_assets/food/icons/spicy.png + - packages/flutter_gallery_assets/food/icons/veggie.png + - packages/flutter_gallery_assets/logos/pesto/logo_small.png + - packages/flutter_gallery_assets/places/india_chennai_flower_market.png + - packages/flutter_gallery_assets/places/india_thanjavur_market.png + - packages/flutter_gallery_assets/places/india_tanjore_bronze_works.png + - packages/flutter_gallery_assets/places/india_tanjore_market_merchant.png + - packages/flutter_gallery_assets/places/india_tanjore_thanjavur_temple.png + - packages/flutter_gallery_assets/places/india_pondicherry_salt_farm.png + - packages/flutter_gallery_assets/places/india_chennai_highway.png + - packages/flutter_gallery_assets/places/india_chettinad_silk_maker.png + - packages/flutter_gallery_assets/places/india_tanjore_thanjavur_temple_carvings.png + - packages/flutter_gallery_assets/places/india_chettinad_produce.png + - packages/flutter_gallery_assets/places/india_tanjore_market_technology.png + - packages/flutter_gallery_assets/places/india_pondicherry_beach.png + - packages/flutter_gallery_assets/places/india_pondicherry_fisherman.png + - packages/flutter_gallery_assets/products/backpack.png + - packages/flutter_gallery_assets/products/belt.png + - packages/flutter_gallery_assets/products/cup.png + - packages/flutter_gallery_assets/products/deskset.png + - packages/flutter_gallery_assets/products/dress.png + - packages/flutter_gallery_assets/products/earrings.png + - packages/flutter_gallery_assets/products/flatwear.png + - packages/flutter_gallery_assets/products/hat.png + - packages/flutter_gallery_assets/products/jacket.png + - packages/flutter_gallery_assets/products/jumper.png + - packages/flutter_gallery_assets/products/kitchen_quattro.png + - packages/flutter_gallery_assets/products/napkins.png + - packages/flutter_gallery_assets/products/planters.png + - packages/flutter_gallery_assets/products/platter.png + - packages/flutter_gallery_assets/products/scarf.png + - packages/flutter_gallery_assets/products/shirt.png + - packages/flutter_gallery_assets/products/sunnies.png + - packages/flutter_gallery_assets/products/sweater.png + - packages/flutter_gallery_assets/products/sweats.png + - packages/flutter_gallery_assets/products/table.png + - packages/flutter_gallery_assets/products/teaset.png + - packages/flutter_gallery_assets/products/top.png + - packages/flutter_gallery_assets/people/ali.png + - packages/flutter_gallery_assets/people/square/ali.png + - packages/flutter_gallery_assets/people/square/peter.png + - packages/flutter_gallery_assets/people/square/sandra.png + - packages/flutter_gallery_assets/people/square/stella.png + - packages/flutter_gallery_assets/people/square/trevor.png fonts: - family: Raleway fonts: - - asset: packages/flutter_gallery_assets/pesto/fonts/Raleway-Regular.ttf - - asset: packages/flutter_gallery_assets/pesto/fonts/Raleway-Medium.ttf + - asset: packages/flutter_gallery_assets/fonts/raleway/Raleway-Regular.ttf + - asset: packages/flutter_gallery_assets/fonts/raleway/Raleway-Medium.ttf weight: 500 - - asset: packages/flutter_gallery_assets/pesto/fonts/Raleway-SemiBold.ttf + - asset: packages/flutter_gallery_assets/fonts/raleway/Raleway-SemiBold.ttf weight: 600 - family: AbrilFatface fonts: - - asset: packages/flutter_gallery_assets/shrine/fonts/abrilfatface/AbrilFatface-Regular.ttf + - asset: packages/flutter_gallery_assets/fonts/abrilfatface/AbrilFatface-Regular.ttf - family: GalleryIcons fonts: - - asset: packages/flutter_gallery_assets/fonts/GalleryIcons.ttf + - asset: packages/flutter_gallery_assets/fonts/private/gallery_icons/GalleryIcons.ttf - family: GoogleSans fonts: - - asset: packages/flutter_gallery_assets/fonts/GoogleSans-BoldItalic.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSans-BoldItalic.ttf weight: 700 style: italic - - asset: packages/flutter_gallery_assets/fonts/GoogleSans-Bold.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSans-Bold.ttf weight: 700 - - asset: packages/flutter_gallery_assets/fonts/GoogleSans-Italic.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSans-Italic.ttf weight: 400 style: italic - - asset: packages/flutter_gallery_assets/fonts/GoogleSans-MediumItalic.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSans-MediumItalic.ttf weight: 500 style: italic - - asset: packages/flutter_gallery_assets/fonts/GoogleSans-Medium.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSans-Medium.ttf weight: 500 - - asset: packages/flutter_gallery_assets/fonts/GoogleSans-Regular.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSans-Regular.ttf weight: 400 - family: GoogleSansDisplay fonts: - - asset: packages/flutter_gallery_assets/fonts/GoogleSansDisplay-BoldItalic.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSansDisplay-BoldItalic.ttf weight: 700 style: italic - - asset: packages/flutter_gallery_assets/fonts/GoogleSansDisplay-Bold.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSansDisplay-Bold.ttf weight: 700 - - asset: packages/flutter_gallery_assets/fonts/GoogleSansDisplay-Italic.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSansDisplay-Italic.ttf weight: 400 style: italic - - asset: packages/flutter_gallery_assets/fonts/GoogleSansDisplay-MediumItalic.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSansDisplay-MediumItalic.ttf style: italic weight: 500 - - asset: packages/flutter_gallery_assets/fonts/GoogleSansDisplay-Medium.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSansDisplay-Medium.ttf weight: 500 - - asset: packages/flutter_gallery_assets/fonts/GoogleSansDisplay-Regular.ttf + - asset: packages/flutter_gallery_assets/fonts/private/googlesans/GoogleSansDisplay-Regular.ttf weight: 400 -# PUBSPEC CHECKSUM: b217 +# PUBSPEC CHECKSUM: e358