Commit 326caa5d authored by Will Larche's avatar Will Larche Committed by xster

[Gallery] Updated assets and copy (#18324)

parent 581a343b
...@@ -352,7 +352,7 @@ class UserHeader extends StatelessWidget { ...@@ -352,7 +352,7 @@ class UserHeader extends StatelessWidget {
const Padding( const Padding(
padding: const EdgeInsets.only(right: 8.0), padding: const EdgeInsets.only(right: 8.0),
child: const Image( 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, width: 32.0,
height: 32.0 height: 32.0
) )
...@@ -410,7 +410,7 @@ class ItemImageBox extends StatelessWidget { ...@@ -410,7 +410,7 @@ class ItemImageBox extends StatelessWidget {
const SizedBox( const SizedBox(
height: 230.0, height: 230.0,
child: const Image( 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( new Theme(
...@@ -447,7 +447,7 @@ class ItemImageBox extends StatelessWidget { ...@@ -447,7 +447,7 @@ class ItemImageBox extends StatelessWidget {
), ),
const TextSpan( const TextSpan(
style: const TextStyle(fontWeight: FontWeight.bold), style: const TextStyle(fontWeight: FontWeight.bold),
text: 'Magic Mike' text: 'Chris Godley'
) )
] ]
) )
...@@ -462,9 +462,9 @@ class ItemImageBox extends StatelessWidget { ...@@ -462,9 +462,9 @@ class ItemImageBox extends StatelessWidget {
child: new Column( child: new Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[ children: <Widget>[
new Text('Where can you find that amazing sunset?', style: Theme.of(context).textTheme.body2), new Text('Artisans of Southern India', style: Theme.of(context).textTheme.body2),
new Text('The sun sets over stinson beach', style: Theme.of(context).textTheme.body1), new Text('Silk Spinners', style: Theme.of(context).textTheme.body1),
new Text('flutter.io/amazingsunsets', style: Theme.of(context).textTheme.caption) new Text('Sivaganga, Tamil Nadu', style: Theme.of(context).textTheme.caption)
] ]
) )
) )
......
...@@ -8,10 +8,7 @@ dependencies: ...@@ -8,10 +8,7 @@ dependencies:
sdk: flutter sdk: flutter
# Also examples/flutter_gallery/pubspec.yaml # Also examples/flutter_gallery/pubspec.yaml
flutter_gallery_assets: flutter_gallery_assets: 0.1.3
git:
url: https://flutter.googlesource.com/gallery-assets
ref: 43590e625ab1b07f6a5809287ce16f7e61d9e165
async: 2.0.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" 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" charcode: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...@@ -75,8 +72,7 @@ dev_dependencies: ...@@ -75,8 +72,7 @@ dev_dependencies:
flutter: flutter:
uses-material-design: true uses-material-design: true
assets: assets:
- packages/flutter_gallery_assets/ali_connors.png - packages/flutter_gallery_assets/people/square/ali.png
- packages/flutter_gallery_assets/ali_connors_sml.png - packages/flutter_gallery_assets/places/india_chettinad_silk_maker.png
- packages/flutter_gallery_assets/top_10_australian_beaches.png
# PUBSPEC CHECKSUM: 45b1 # PUBSPEC CHECKSUM: 89f2
...@@ -59,59 +59,59 @@ class Section { ...@@ -59,59 +59,59 @@ 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: 'shrine/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: 'shrine/products/sunnies.png', imageAsset: '/products/sunnies.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
); );
const SectionDetail _seatingDetail = const SectionDetail( const SectionDetail _seatingDetail = const SectionDetail(
imageAsset: 'shrine/products/lawn_chair.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: 'shrine/products/lawn_chair.png', imageAsset: '/products/table.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
); );
const SectionDetail _decorationDetail = const SectionDetail( const SectionDetail _decorationDetail = const SectionDetail(
imageAsset: 'shrine/products/lipstick.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: 'shrine/products/lipstick.png', imageAsset: '/products/earrings.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
); );
const SectionDetail _protectionDetail = const SectionDetail( const SectionDetail _protectionDetail = const SectionDetail(
imageAsset: 'shrine/products/helmet.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: 'shrine/products/helmet.png', imageAsset: '/products/hat.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
); );
final List<Section> allSections = <Section>[ final List<Section> allSections = <Section>[
const Section( const Section(
title: 'EYEGLASSES', title: 'SUNGLASSES',
leftColor: _mediumPurple, leftColor: _mediumPurple,
rightColor: _mariner, rightColor: _mariner,
backgroundAsset: 'shrine/products/sunnies.png', backgroundAsset: '/products/sunnies.png',
backgroundAssetPackage: _kGalleryAssetsPackage, backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[ details: const <SectionDetail>[
_eyeglassesDetail, _eyeglassesDetail,
...@@ -123,10 +123,10 @@ final List<Section> allSections = <Section>[ ...@@ -123,10 +123,10 @@ final List<Section> allSections = <Section>[
], ],
), ),
const Section( const Section(
title: 'SEATING', title: 'FURNITURE',
leftColor: _tomato, leftColor: _tomato,
rightColor: _mediumPurple, rightColor: _mediumPurple,
backgroundAsset: 'shrine/products/lawn_chair.png', backgroundAsset: '/products/table.png',
backgroundAssetPackage: _kGalleryAssetsPackage, backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[ details: const <SectionDetail>[
_seatingDetail, _seatingDetail,
...@@ -138,10 +138,10 @@ final List<Section> allSections = <Section>[ ...@@ -138,10 +138,10 @@ final List<Section> allSections = <Section>[
], ],
), ),
const Section( const Section(
title: 'DECORATION', title: 'JEWELRY',
leftColor: _mySin, leftColor: _mySin,
rightColor: _tomato, rightColor: _tomato,
backgroundAsset: 'shrine/products/lipstick.png', backgroundAsset: '/products/earrings.png',
backgroundAssetPackage: _kGalleryAssetsPackage, backgroundAssetPackage: _kGalleryAssetsPackage,
details: const <SectionDetail>[ details: const <SectionDetail>[
_decorationDetail, _decorationDetail,
...@@ -153,10 +153,10 @@ final List<Section> allSections = <Section>[ ...@@ -153,10 +153,10 @@ final List<Section> allSections = <Section>[
], ],
), ),
const Section( const Section(
title: 'PROTECTION', title: 'HEADWEAR',
leftColor: Colors.white, leftColor: Colors.white,
rightColor: _tomato, rightColor: _tomato,
backgroundAsset: 'shrine/products/helmet.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(
'ali_connors.jpg', '/people/ali_landscape.png',
package: 'flutter_gallery_assets', package: 'flutter_gallery_assets',
fit: BoxFit.cover, fit: BoxFit.cover,
height: _appBarHeight, height: _appBarHeight,
...@@ -328,7 +328,7 @@ class ContactsDemoState extends State<ContactsDemo> { ...@@ -328,7 +328,7 @@ class ContactsDemoState extends State<ContactsDemo> {
new _ContactItem( new _ContactItem(
lines: const <String>[ lines: const <String>[
'Last day in office', 'Last day in office',
'August 9th, 2015', 'August 9th, 2018',
], ],
), ),
], ],
......
...@@ -507,8 +507,8 @@ class Tab2Header extends StatelessWidget { ...@@ -507,8 +507,8 @@ class Tab2Header extends StatelessWidget {
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: const DecorationImage( image: const DecorationImage(
image: const AssetImage( image: const AssetImage(
'cupertino_navigation/person1.jpg', '/people/square/trevor.png',
package: _kGalleryAssetsPackage package: _kGalleryAssetsPackage,
), ),
), ),
shape: BoxShape.circle, shape: BoxShape.circle,
...@@ -521,8 +521,8 @@ class Tab2Header extends StatelessWidget { ...@@ -521,8 +521,8 @@ class Tab2Header extends StatelessWidget {
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: const DecorationImage( image: const DecorationImage(
image: const AssetImage( image: const AssetImage(
'cupertino_navigation/person2.jpg', '/people/square/sandra.png',
package: _kGalleryAssetsPackage package: _kGalleryAssetsPackage,
), ),
), ),
shape: BoxShape.circle, shape: BoxShape.circle,
......
...@@ -11,21 +11,27 @@ class ImagesDemo extends StatelessWidget { ...@@ -11,21 +11,27 @@ class ImagesDemo extends StatelessWidget {
title: 'Animated images', title: 'Animated images',
demos: <ComponentDemoTabData>[ demos: <ComponentDemoTabData>[
new ComponentDemoTabData( new ComponentDemoTabData(
tabName: 'ANIMATED WEBP', tabName: 'WEBP',
description: '', description: '',
exampleCodeTag: 'animated_image', exampleCodeTag: 'animated_image',
demoWidget: new Semantics( demoWidget: new Semantics(
label: 'Example of animated WEBP', 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( new ComponentDemoTabData(
tabName: 'ANIMATED GIF', tabName: 'GIF',
description: '', description: '',
exampleCodeTag: 'animated_image', exampleCodeTag: 'animated_image',
demoWidget: new Semantics( demoWidget: new Semantics(
label: 'Example of animated GIF', 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',
),
), ),
), ),
] ]
......
...@@ -20,72 +20,76 @@ class Category { ...@@ -20,72 +20,76 @@ class Category {
const List<Category> allCategories = const <Category>[ const List<Category> allCategories = const <Category>[
const Category( const Category(
title: 'Home', title: 'Accessories',
assets: const <String>[ assets: const <String>[
'shrine/products/clock.png', '/products/belt.png',
'shrine/products/teapot.png', '/products/earrings.png',
'shrine/products/radio.png', '/products/backpack.png',
'shrine/products/lawn_chair.png', '/products/hat.png',
'shrine/products/chair.png', '/products/scarf.png',
'/products/sunnies.png',
], ],
), ),
const Category( const Category(
title: 'Red', title: 'Blue',
assets: const <String>[ assets: const <String>[
'shrine/products/popsicle.png', '/products/backpack.png',
'shrine/products/brush.png', '/products/cup.png',
'shrine/products/lipstick.png', '/products/napkins.png',
'shrine/products/backpack.png', '/products/top.png',
], ],
), ),
const Category( const Category(
title: 'Sport', title: 'Cold Weather',
assets: const <String>[ assets: const <String>[
'shrine/products/helmet.png', '/products/jacket.png',
'shrine/products/beachball.png', '/products/jumper.png',
'shrine/products/flippers.png', '/products/scarf.png',
'shrine/products/surfboard.png', '/products/sweater.png',
'/products/sweats.png',
], ],
), ),
const Category( const Category(
title: 'Shoes', title: 'Home',
assets: const <String>[ assets: const <String>[
'shrine/products/chucks.png', '/products/cup.png',
'shrine/products/green-shoes.png', '/products/napkins.png',
'shrine/products/heels.png', '/products/planters.png',
'shrine/products/flippers.png', '/products/table.png',
'/products/teaset.png',
], ],
), ),
const Category( const Category(
title: 'Vision', title: 'Tops',
assets: const <String>[ assets: const <String>[
'shrine/products/sunnies.png', '/products/jumper.png',
'shrine/products/binoculars.png', '/products/shirt.png',
'shrine/products/fish_bowl.png', '/products/sweater.png',
'/products/top.png',
], ],
), ),
const Category( const Category(
title: 'Everything', title: 'Everything',
assets: const <String>[ assets: const <String>[
'shrine/products/radio.png', '/products/backpack.png',
'shrine/products/sunnies.png', '/products/belt.png',
'shrine/products/clock.png', '/products/cup.png',
'shrine/products/popsicle.png', '/products/dress.png',
'shrine/products/lawn_chair.png', '/products/earrings.png',
'shrine/products/chair.png', '/products/flatwear.png',
'shrine/products/heels.png', '/products/hat.png',
'shrine/products/green-shoes.png', '/products/jacket.png',
'shrine/products/teapot.png', '/products/jumper.png',
'shrine/products/chucks.png', '/products/napkins.png',
'shrine/products/brush.png', '/products/planters.png',
'shrine/products/fish_bowl.png', '/products/scarf.png',
'shrine/products/lipstick.png', '/products/shirt.png',
'shrine/products/backpack.png', '/products/sunnies.png',
'shrine/products/helmet.png', '/products/sweater.png',
'shrine/products/beachball.png', '/products/sweats.png',
'shrine/products/binoculars.png', '/products/table.png',
'shrine/products/flippers.png', '/products/teaset.png',
'shrine/products/surfboard.png', '/products/top.png',
], ],
), ),
]; ];
......
...@@ -25,23 +25,23 @@ class TravelDestination { ...@@ -25,23 +25,23 @@ class TravelDestination {
final List<TravelDestination> destinations = <TravelDestination>[ final List<TravelDestination> destinations = <TravelDestination>[
const TravelDestination( const TravelDestination(
assetName: 'top_10_australian_beaches.jpg', assetName: '/places/india_thanjavur_market.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Top 10 Australian beaches', title: 'Top 10 Cities to Visit in Tamil Nadu',
description: const <String>[ description: const <String>[
'Number 10', 'Number 10',
'Whitehaven Beach', 'Thanjavur',
'Whitsunday Island, Whitsunday Islands', 'Thanjavur, Tamil Nadu',
], ],
), ),
const TravelDestination( const TravelDestination(
assetName: 'kangaroo_valley_safari.jpg', assetName: '/places/india_chettinad_silk_maker.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Kangaroo Valley Safari', title: 'Artisans of Southern India',
description: const <String>[ description: const <String>[
'2031 Moss Vale Road', 'Silk Spinners',
'Kangaroo Valley 2577', 'Chettinad',
'New South Wales', 'Sivaganga, Tamil Nadu',
], ],
) )
]; ];
......
...@@ -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': 'shrine/vendors/ali-connors.png', 'hammer': '/people/square/ali.png',
'chisel': 'shrine/vendors/sandra-adams.jpg', 'chisel': '/people/square/sandra.png',
'fryer': 'shrine/vendors/zach.jpg', 'fryer': '/people/square/trevor.png',
'fabricator': 'shrine/vendors/peter-carlsson.png', 'fabricator': '/people/square/stella.png',
'customer': 'shrine/vendors/16c477b.jpg', '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 = 'shrine/vendors/zach.jpg'; const String _kAsset0 = '/people/square/trevor.png';
const String _kAsset1 = 'shrine/vendors/16c477b.jpg'; const String _kAsset1 = '/people/square/stella.png';
const String _kAsset2 = 'shrine/vendors/sandra-adams.jpg'; 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 {
...@@ -92,8 +92,8 @@ class _DrawerDemoState extends State<DrawerDemo> with TickerProviderStateMixin { ...@@ -92,8 +92,8 @@ class _DrawerDemoState extends State<DrawerDemo> with TickerProviderStateMixin {
child: new Column( child: new Column(
children: <Widget>[ children: <Widget>[
new UserAccountsDrawerHeader( new UserAccountsDrawerHeader(
accountName: const Text('Zach Widget'), accountName: const Text('Trevor Widget'),
accountEmail: const Text('zach.widget@example.com'), accountEmail: const Text('trevor.widget@example.com'),
currentAccountPicture: const CircleAvatar( currentAccountPicture: const CircleAvatar(
backgroundImage: const AssetImage( backgroundImage: const AssetImage(
_kAsset0, _kAsset0,
......
...@@ -254,76 +254,76 @@ class GridListDemoState extends State<GridListDemo> { ...@@ -254,76 +254,76 @@ class GridListDemoState extends State<GridListDemo> {
List<Photo> photos = <Photo>[ List<Photo> photos = <Photo>[
new Photo( new Photo(
assetName: 'landscape_0.jpg', assetName: '/places/india_chennai_flower_market.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Philippines', title: 'Chennai',
caption: 'Batad rice terraces', caption: 'Flower Market',
), ),
new Photo( new Photo(
assetName: 'landscape_1.jpg', assetName: '/places/india_tanjore_bronze_works.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Italy', title: 'Tanjore',
caption: 'Ceresole Reale', caption: 'Bronze Works',
), ),
new Photo( new Photo(
assetName: 'landscape_2.jpg', assetName: '/places/india_tanjore_market_merchant.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Somewhere', title: 'Tanjore',
caption: 'Beautiful mountains', caption: 'Market',
), ),
new Photo( new Photo(
assetName: 'landscape_3.jpg', assetName: '/places/india_tanjore_thanjavur_temple.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'A place', title: 'Tanjore',
caption: 'Beautiful hills', caption: 'Thanjavur Temple',
), ),
new Photo( new Photo(
assetName: 'landscape_4.jpg', assetName: '/places/india_tanjore_thanjavur_temple_carvings.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'New Zealand', title: 'Tanjore',
caption: 'View from the van', caption: 'Thanjavur Temple',
), ),
new Photo( new Photo(
assetName: 'landscape_5.jpg', assetName: '/places/india_pondicherry_salt_farm.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Autumn', title: 'Pondicherry',
caption: 'The golden season', caption: 'Salt Farm',
), ),
new Photo( new Photo(
assetName: 'landscape_6.jpg', assetName: '/places/india_chennai_highway.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Germany', title: 'Chennai',
caption: 'Englischer Garten', caption: 'Scooters',
), ),
new Photo( new Photo(
assetName: 'landscape_7.jpg', assetName: '/places/india_chettinad_silk_maker.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'A country', title: 'Chettinad',
caption: 'Grass fields', caption: 'Silk Maker',
), ),
new Photo( new Photo(
assetName: 'landscape_8.jpg', assetName: '/places/india_chettinad_produce.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Mountain country', title: 'Chettinad',
caption: 'River forest', caption: 'Lunch Prep',
), ),
new Photo( new Photo(
assetName: 'landscape_9.jpg', assetName: '/places/india_tanjore_market_technology.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Alpine place', title: 'Tanjore',
caption: 'Green hills', caption: 'Market',
), ),
new Photo( new Photo(
assetName: 'landscape_10.jpg', assetName: '/places/india_pondicherry_beach.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Desert land', title: 'Pondicherry',
caption: 'Blue skies', caption: 'Beach',
), ),
new Photo( new Photo(
assetName: 'landscape_11.jpg', assetName: '/places/india_pondicherry_fisherman.png',
assetPackage: _kGalleryAssetsPackage, assetPackage: _kGalleryAssetsPackage,
title: 'Narnia', title: 'Pondicherry',
caption: 'Rocks and rivers', caption: 'Fisherman',
), ),
]; ];
......
...@@ -100,11 +100,11 @@ class _SearchDemoState extends State<SearchDemo> { ...@@ -100,11 +100,11 @@ class _SearchDemoState extends State<SearchDemo> {
child: new Column( child: new Column(
children: <Widget>[ children: <Widget>[
const UserAccountsDrawerHeader( const UserAccountsDrawerHeader(
accountName: const Text('Zach Widget'), accountName: const Text('Peter Widget'),
accountEmail: const Text('zach.widget@example.com'), accountEmail: const Text('peter.widget@example.com'),
currentAccountPicture: const CircleAvatar( currentAccountPicture: const CircleAvatar(
backgroundImage: const AssetImage( backgroundImage: const AssetImage(
'shrine/vendors/zach.jpg', '/people/square/peter.png',
package: 'flutter_gallery_assets', package: 'flutter_gallery_assets',
), ),
), ),
......
...@@ -25,67 +25,67 @@ class _CardData { ...@@ -25,67 +25,67 @@ class _CardData {
} }
final Map<_Page, List<_CardData>> _allPages = <_Page, List<_CardData>>{ final Map<_Page, List<_CardData>> _allPages = <_Page, List<_CardData>>{
new _Page(label: 'LEFT'): <_CardData>[ new _Page(label: 'HOME'): <_CardData>[
const _CardData( const _CardData(
title: 'Vintage Bluetooth Radio', title: 'Flatwear',
imageAsset: 'shrine/products/radio.png', imageAsset: '/products/flatwear.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Sunglasses', title: 'Pine Table',
imageAsset: 'shrine/products/sunnies.png', imageAsset: '/products/table.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Clock', title: 'Blue Cup',
imageAsset: 'shrine/products/clock.png', imageAsset: '/products/cup.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Red popsicle', title: 'Tea Set',
imageAsset: 'shrine/products/popsicle.png', imageAsset: '/products/teaset.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Folding Chair', title: 'Desk Set',
imageAsset: 'shrine/products/lawn_chair.png', imageAsset: '/products/deskset.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Green comfort chair', title: 'Blue Linen Napkins',
imageAsset: 'shrine/products/chair.png', imageAsset: '/products/napkins.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Old Binoculars', title: 'Planters',
imageAsset: 'shrine/products/binoculars.png', imageAsset: '/products/planters.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Teapot', title: 'Kitchen Quattro',
imageAsset: 'shrine/products/teapot.png', imageAsset: '/products/kitchen_quattro.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Blue suede shoes', title: 'Platter',
imageAsset: 'shrine/products/chucks.png', imageAsset: '/products/platter.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
], ],
new _Page(label: 'RIGHT'): <_CardData>[ new _Page(label: 'APPAREL'): <_CardData>[
const _CardData( const _CardData(
title: 'Beachball', title: 'Cloud-White Dress',
imageAsset: 'shrine/products/beachball.png', imageAsset: '/products/dress.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Dipped Brush', title: 'Ginger Scarf',
imageAsset: 'shrine/products/brush.png', imageAsset: '/products/scarf.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
const _CardData( const _CardData(
title: 'Perfect Goldfish Bowl', title: 'Blush Sweats',
imageAsset: 'shrine/products/fish_bowl.png', imageAsset: '/products/sweats.png',
imageAssetPackage: _kGalleryAssetsPackage, imageAssetPackage: _kGalleryAssetsPackage,
), ),
], ],
...@@ -108,7 +108,7 @@ class _CardDataItem extends StatelessWidget { ...@@ -108,7 +108,7 @@ class _CardDataItem extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[ children: <Widget>[
new Align( new Align(
alignment: page.id == 'L' alignment: page.id == 'H'
? Alignment.centerLeft ? Alignment.centerLeft
: Alignment.centerRight, : Alignment.centerRight,
child: new CircleAvatar(child: new Text('${page.id}')), child: new CircleAvatar(child: new Text('${page.id}')),
......
...@@ -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(
'white_logo/logo.png', '/logos/flutter_white/logo.png',
package: _kGalleryAssetsPackage, package: _kGalleryAssetsPackage,
), ),
), ),
......
This diff is collapsed.
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