Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
226f2c1e
Unverified
Commit
226f2c1e
authored
Jun 10, 2018
by
Mehmet Fidanboylu
Committed by
GitHub
Jun 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken asset uris (#18336)
parent
691cbee6
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
148 additions
and
148 deletions
+148
-148
sections.dart
examples/flutter_gallery/lib/demo/animation/sections.dart
+12
-12
contacts_demo.dart
examples/flutter_gallery/lib/demo/contacts_demo.dart
+1
-1
cupertino_navigation_demo.dart
...gallery/lib/demo/cupertino/cupertino_navigation_demo.dart
+2
-2
images_demo.dart
examples/flutter_gallery/lib/demo/images_demo.dart
+2
-2
backdrop_demo.dart
...ples/flutter_gallery/lib/demo/material/backdrop_demo.dart
+43
-43
cards_demo.dart
examples/flutter_gallery/lib/demo/material/cards_demo.dart
+2
-2
chip_demo.dart
examples/flutter_gallery/lib/demo/material/chip_demo.dart
+5
-5
drawer_demo.dart
examples/flutter_gallery/lib/demo/material/drawer_demo.dart
+3
-3
grid_list_demo.dart
...les/flutter_gallery/lib/demo/material/grid_list_demo.dart
+12
-12
search_demo.dart
examples/flutter_gallery/lib/demo/material/search_demo.dart
+1
-1
tabs_demo.dart
examples/flutter_gallery/lib/demo/material/tabs_demo.dart
+12
-12
pesto_demo.dart
examples/flutter_gallery/lib/demo/pesto_demo.dart
+27
-27
shrine_data.dart
examples/flutter_gallery/lib/demo/shrine/shrine_data.dart
+24
-24
video_demo.dart
examples/flutter_gallery/lib/demo/video_demo.dart
+1
-1
home.dart
examples/flutter_gallery/lib/gallery/home.dart
+1
-1
No files found.
examples/flutter_gallery/lib/demo/animation/sections.dart
View file @
226f2c1e
...
...
@@ -59,50 +59,50 @@ class Section {
// image SectionDetails in the allSections list.
const
SectionDetail
_eyeglassesDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/sunnies.png'
,
imageAsset:
'products/sunnies.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
);
const
SectionDetail
_eyeglassesImageDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/sunnies.png'
,
imageAsset:
'products/sunnies.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
const
SectionDetail
_seatingDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/table.png'
,
imageAsset:
'products/table.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
);
const
SectionDetail
_seatingImageDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/table.png'
,
imageAsset:
'products/table.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
const
SectionDetail
_decorationDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/earrings.png'
,
imageAsset:
'products/earrings.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
);
const
SectionDetail
_decorationImageDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/earrings.png'
,
imageAsset:
'products/earrings.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
const
SectionDetail
_protectionDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/hat.png'
,
imageAsset:
'products/hat.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
);
const
SectionDetail
_protectionImageDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/hat.png'
,
imageAsset:
'products/hat.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
...
...
@@ -111,7 +111,7 @@ final List<Section> allSections = <Section>[
title:
'SUNGLASSES'
,
leftColor:
_mediumPurple
,
rightColor:
_mariner
,
backgroundAsset:
'
/
products/sunnies.png'
,
backgroundAsset:
'products/sunnies.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
_eyeglassesDetail
,
...
...
@@ -126,7 +126,7 @@ final List<Section> allSections = <Section>[
title:
'FURNITURE'
,
leftColor:
_tomato
,
rightColor:
_mediumPurple
,
backgroundAsset:
'
/
products/table.png'
,
backgroundAsset:
'products/table.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
_seatingDetail
,
...
...
@@ -141,7 +141,7 @@ final List<Section> allSections = <Section>[
title:
'JEWELRY'
,
leftColor:
_mySin
,
rightColor:
_tomato
,
backgroundAsset:
'
/
products/earrings.png'
,
backgroundAsset:
'products/earrings.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
_decorationDetail
,
...
...
@@ -156,7 +156,7 @@ final List<Section> allSections = <Section>[
title:
'HEADWEAR'
,
leftColor:
Colors
.
white
,
rightColor:
_tomato
,
backgroundAsset:
'
/
products/hat.png'
,
backgroundAsset:
'products/hat.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
_protectionDetail
,
...
...
examples/flutter_gallery/lib/demo/contacts_demo.dart
View file @
226f2c1e
...
...
@@ -160,7 +160,7 @@ class ContactsDemoState extends State<ContactsDemo> {
fit:
StackFit
.
expand
,
children:
<
Widget
>[
new
Image
.
asset
(
'
/
people/ali_landscape.png'
,
'people/ali_landscape.png'
,
package:
'flutter_gallery_assets'
,
fit:
BoxFit
.
cover
,
height:
_appBarHeight
,
...
...
examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart
View file @
226f2c1e
...
...
@@ -507,7 +507,7 @@ class Tab2Header extends StatelessWidget {
decoration:
const
BoxDecoration
(
image:
const
DecorationImage
(
image:
const
AssetImage
(
'
/
people/square/trevor.png'
,
'people/square/trevor.png'
,
package:
_kGalleryAssetsPackage
,
),
),
...
...
@@ -521,7 +521,7 @@ class Tab2Header extends StatelessWidget {
decoration:
const
BoxDecoration
(
image:
const
DecorationImage
(
image:
const
AssetImage
(
'
/
people/square/sandra.png'
,
'people/square/sandra.png'
,
package:
_kGalleryAssetsPackage
,
),
),
...
...
examples/flutter_gallery/lib/demo/images_demo.dart
View file @
226f2c1e
...
...
@@ -17,7 +17,7 @@ class ImagesDemo extends StatelessWidget {
demoWidget:
new
Semantics
(
label:
'Example of animated WEBP'
,
child:
new
Image
.
asset
(
'
/
animated_images/animated_flutter_stickers.webp'
,
'animated_images/animated_flutter_stickers.webp'
,
package:
'flutter_gallery_assets'
,
),
),
...
...
@@ -29,7 +29,7 @@ class ImagesDemo extends StatelessWidget {
demoWidget:
new
Semantics
(
label:
'Example of animated GIF'
,
child:
new
Image
.
asset
(
'
/
animated_images/animated_flutter_lgtm.gif'
,
'animated_images/animated_flutter_lgtm.gif'
,
package:
'flutter_gallery_assets'
,
),
),
...
...
examples/flutter_gallery/lib/demo/material/backdrop_demo.dart
View file @
226f2c1e
...
...
@@ -22,74 +22,74 @@ const List<Category> allCategories = const <Category>[
const
Category
(
title:
'Accessories'
,
assets:
const
<
String
>[
'
/
products/belt.png'
,
'
/
products/earrings.png'
,
'
/
products/backpack.png'
,
'
/
products/hat.png'
,
'
/
products/scarf.png'
,
'
/
products/sunnies.png'
,
'products/belt.png'
,
'products/earrings.png'
,
'products/backpack.png'
,
'products/hat.png'
,
'products/scarf.png'
,
'products/sunnies.png'
,
],
),
const
Category
(
title:
'Blue'
,
assets:
const
<
String
>[
'
/
products/backpack.png'
,
'
/
products/cup.png'
,
'
/
products/napkins.png'
,
'
/
products/top.png'
,
'products/backpack.png'
,
'products/cup.png'
,
'products/napkins.png'
,
'products/top.png'
,
],
),
const
Category
(
title:
'Cold Weather'
,
assets:
const
<
String
>[
'
/
products/jacket.png'
,
'
/
products/jumper.png'
,
'
/
products/scarf.png'
,
'
/
products/sweater.png'
,
'
/
products/sweats.png'
,
'products/jacket.png'
,
'products/jumper.png'
,
'products/scarf.png'
,
'products/sweater.png'
,
'products/sweats.png'
,
],
),
const
Category
(
title:
'Home'
,
assets:
const
<
String
>[
'
/
products/cup.png'
,
'
/
products/napkins.png'
,
'
/
products/planters.png'
,
'
/
products/table.png'
,
'
/
products/teaset.png'
,
'products/cup.png'
,
'products/napkins.png'
,
'products/planters.png'
,
'products/table.png'
,
'products/teaset.png'
,
],
),
const
Category
(
title:
'Tops'
,
assets:
const
<
String
>[
'
/
products/jumper.png'
,
'
/
products/shirt.png'
,
'
/
products/sweater.png'
,
'
/
products/top.png'
,
'products/jumper.png'
,
'products/shirt.png'
,
'products/sweater.png'
,
'products/top.png'
,
],
),
const
Category
(
title:
'Everything'
,
assets:
const
<
String
>[
'
/
products/backpack.png'
,
'
/
products/belt.png'
,
'
/
products/cup.png'
,
'
/
products/dress.png'
,
'
/
products/earrings.png'
,
'
/
products/flatwear.png'
,
'
/
products/hat.png'
,
'
/
products/jacket.png'
,
'
/
products/jumper.png'
,
'
/
products/napkins.png'
,
'
/
products/planters.png'
,
'
/
products/scarf.png'
,
'
/
products/shirt.png'
,
'
/
products/sunnies.png'
,
'
/
products/sweater.png'
,
'
/
products/sweats.png'
,
'
/
products/table.png'
,
'
/
products/teaset.png'
,
'
/
products/top.png'
,
'products/backpack.png'
,
'products/belt.png'
,
'products/cup.png'
,
'products/dress.png'
,
'products/earrings.png'
,
'products/flatwear.png'
,
'products/hat.png'
,
'products/jacket.png'
,
'products/jumper.png'
,
'products/napkins.png'
,
'products/planters.png'
,
'products/scarf.png'
,
'products/shirt.png'
,
'products/sunnies.png'
,
'products/sweater.png'
,
'products/sweats.png'
,
'products/table.png'
,
'products/teaset.png'
,
'products/top.png'
,
],
),
];
...
...
examples/flutter_gallery/lib/demo/material/cards_demo.dart
View file @
226f2c1e
...
...
@@ -25,7 +25,7 @@ class TravelDestination {
final
List
<
TravelDestination
>
destinations
=
<
TravelDestination
>[
const
TravelDestination
(
assetName:
'
/
places/india_thanjavur_market.png'
,
assetName:
'places/india_thanjavur_market.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Top 10 Cities to Visit in Tamil Nadu'
,
description:
const
<
String
>[
...
...
@@ -35,7 +35,7 @@ final List<TravelDestination> destinations = <TravelDestination>[
],
),
const
TravelDestination
(
assetName:
'
/
places/india_chettinad_silk_maker.png'
,
assetName:
'places/india_chettinad_silk_maker.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Artisans of Southern India'
,
description:
const
<
String
>[
...
...
examples/flutter_gallery/lib/demo/material/chip_demo.dart
View file @
226f2c1e
...
...
@@ -45,11 +45,11 @@ const List<String> _defaultTools = const <String>[
];
const
Map
<
String
,
String
>
_avatars
=
const
<
String
,
String
>{
'hammer'
:
'
/
people/square/ali.png'
,
'chisel'
:
'
/
people/square/sandra.png'
,
'fryer'
:
'
/
people/square/trevor.png'
,
'fabricator'
:
'
/
people/square/stella.png'
,
'customer'
:
'
/
people/square/peter.png'
,
'hammer'
:
'people/square/ali.png'
,
'chisel'
:
'people/square/sandra.png'
,
'fryer'
:
'people/square/trevor.png'
,
'fabricator'
:
'people/square/stella.png'
,
'customer'
:
'people/square/peter.png'
,
};
final
Map
<
String
,
Set
<
String
>>
_toolActions
=
<
String
,
Set
<
String
>>{
...
...
examples/flutter_gallery/lib/demo/material/drawer_demo.dart
View file @
226f2c1e
...
...
@@ -4,9 +4,9 @@
import
'package:flutter/material.dart'
;
const
String
_kAsset0
=
'
/
people/square/trevor.png'
;
const
String
_kAsset1
=
'
/
people/square/stella.png'
;
const
String
_kAsset2
=
'
/
people/square/sandra.png'
;
const
String
_kAsset0
=
'people/square/trevor.png'
;
const
String
_kAsset1
=
'people/square/stella.png'
;
const
String
_kAsset2
=
'people/square/sandra.png'
;
const
String
_kGalleryAssetsPackage
=
'flutter_gallery_assets'
;
class
DrawerDemo
extends
StatefulWidget
{
...
...
examples/flutter_gallery/lib/demo/material/grid_list_demo.dart
View file @
226f2c1e
...
...
@@ -254,73 +254,73 @@ class GridListDemoState extends State<GridListDemo> {
List
<
Photo
>
photos
=
<
Photo
>[
new
Photo
(
assetName:
'
/
places/india_chennai_flower_market.png'
,
assetName:
'places/india_chennai_flower_market.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Chennai'
,
caption:
'Flower Market'
,
),
new
Photo
(
assetName:
'
/
places/india_tanjore_bronze_works.png'
,
assetName:
'places/india_tanjore_bronze_works.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
caption:
'Bronze Works'
,
),
new
Photo
(
assetName:
'
/
places/india_tanjore_market_merchant.png'
,
assetName:
'places/india_tanjore_market_merchant.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
caption:
'Market'
,
),
new
Photo
(
assetName:
'
/
places/india_tanjore_thanjavur_temple.png'
,
assetName:
'places/india_tanjore_thanjavur_temple.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
caption:
'Thanjavur Temple'
,
),
new
Photo
(
assetName:
'
/
places/india_tanjore_thanjavur_temple_carvings.png'
,
assetName:
'places/india_tanjore_thanjavur_temple_carvings.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
caption:
'Thanjavur Temple'
,
),
new
Photo
(
assetName:
'
/
places/india_pondicherry_salt_farm.png'
,
assetName:
'places/india_pondicherry_salt_farm.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Pondicherry'
,
caption:
'Salt Farm'
,
),
new
Photo
(
assetName:
'
/
places/india_chennai_highway.png'
,
assetName:
'places/india_chennai_highway.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Chennai'
,
caption:
'Scooters'
,
),
new
Photo
(
assetName:
'
/
places/india_chettinad_silk_maker.png'
,
assetName:
'places/india_chettinad_silk_maker.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Chettinad'
,
caption:
'Silk Maker'
,
),
new
Photo
(
assetName:
'
/
places/india_chettinad_produce.png'
,
assetName:
'places/india_chettinad_produce.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Chettinad'
,
caption:
'Lunch Prep'
,
),
new
Photo
(
assetName:
'
/
places/india_tanjore_market_technology.png'
,
assetName:
'places/india_tanjore_market_technology.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
caption:
'Market'
,
),
new
Photo
(
assetName:
'
/
places/india_pondicherry_beach.png'
,
assetName:
'places/india_pondicherry_beach.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Pondicherry'
,
caption:
'Beach'
,
),
new
Photo
(
assetName:
'
/
places/india_pondicherry_fisherman.png'
,
assetName:
'places/india_pondicherry_fisherman.png'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Pondicherry'
,
caption:
'Fisherman'
,
...
...
examples/flutter_gallery/lib/demo/material/search_demo.dart
View file @
226f2c1e
...
...
@@ -104,7 +104,7 @@ class _SearchDemoState extends State<SearchDemo> {
accountEmail:
const
Text
(
'peter.widget@example.com'
),
currentAccountPicture:
const
CircleAvatar
(
backgroundImage:
const
AssetImage
(
'
/
people/square/peter.png'
,
'people/square/peter.png'
,
package:
'flutter_gallery_assets'
,
),
),
...
...
examples/flutter_gallery/lib/demo/material/tabs_demo.dart
View file @
226f2c1e
...
...
@@ -28,64 +28,64 @@ final Map<_Page, List<_CardData>> _allPages = <_Page, List<_CardData>>{
new
_Page
(
label:
'HOME'
):
<
_CardData
>[
const
_CardData
(
title:
'Flatwear'
,
imageAsset:
'
/
products/flatwear.png'
,
imageAsset:
'products/flatwear.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Pine Table'
,
imageAsset:
'
/
products/table.png'
,
imageAsset:
'products/table.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Blue Cup'
,
imageAsset:
'
/
products/cup.png'
,
imageAsset:
'products/cup.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Tea Set'
,
imageAsset:
'
/
products/teaset.png'
,
imageAsset:
'products/teaset.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Desk Set'
,
imageAsset:
'
/
products/deskset.png'
,
imageAsset:
'products/deskset.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Blue Linen Napkins'
,
imageAsset:
'
/
products/napkins.png'
,
imageAsset:
'products/napkins.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Planters'
,
imageAsset:
'
/
products/planters.png'
,
imageAsset:
'products/planters.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Kitchen Quattro'
,
imageAsset:
'
/
products/kitchen_quattro.png'
,
imageAsset:
'products/kitchen_quattro.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Platter'
,
imageAsset:
'
/
products/platter.png'
,
imageAsset:
'products/platter.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
],
new
_Page
(
label:
'APPAREL'
):
<
_CardData
>[
const
_CardData
(
title:
'Cloud-White Dress'
,
imageAsset:
'
/
products/dress.png'
,
imageAsset:
'products/dress.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Ginger Scarf'
,
imageAsset:
'
/
products/scarf.png'
,
imageAsset:
'products/scarf.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'Blush Sweats'
,
imageAsset:
'
/
products/sweats.png'
,
imageAsset:
'products/sweats.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
],
...
...
examples/flutter_gallery/lib/demo/pesto_demo.dart
View file @
226f2c1e
This diff is collapsed.
Click to expand it.
examples/flutter_gallery/lib/demo/shrine/shrine_data.dart
View file @
226f2c1e
...
...
@@ -8,7 +8,7 @@ const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
const
Vendor
_ali
=
const
Vendor
(
name:
'Ali’s shop'
,
avatarAsset:
'
/
people/square/ali.png'
,
avatarAsset:
'people/square/ali.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
'Ali Connor’s makes custom goods for folks of all shapes and sizes '
...
...
@@ -18,7 +18,7 @@ const Vendor _ali = const Vendor(
const
Vendor
_peter
=
const
Vendor
(
name:
'Peter’s shop'
,
avatarAsset:
'
/
people/square/peter.png'
,
avatarAsset:
'people/square/peter.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
'Peter makes great stuff for awesome people like you. Super cool and extra '
...
...
@@ -28,7 +28,7 @@ const Vendor _peter = const Vendor(
const
Vendor
_sandra
=
const
Vendor
(
name:
'Sandra’s shop'
,
avatarAsset:
'
/
people/square/sandra.png'
,
avatarAsset:
'people/square/sandra.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
'Sandra specializes in furniture, beauty and travel products with a classic vibe. '
...
...
@@ -37,7 +37,7 @@ const Vendor _sandra = const Vendor(
const
Vendor
_stella
=
const
Vendor
(
name:
'Stella’s shop'
,
avatarAsset:
'
/
people/square/stella.png'
,
avatarAsset:
'people/square/stella.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
'Stella sells awesome stuff at lovely prices. made by hand and sometimes by '
...
...
@@ -47,7 +47,7 @@ const Vendor _stella = const Vendor(
const
Vendor
_trevor
=
const
Vendor
(
name:
'Trevor’s shop'
,
avatarAsset:
'
/
people/square/trevor.png'
,
avatarAsset:
'people/square/trevor.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
'Trevor makes great stuff for awesome people like you. Super cool and extra '
...
...
@@ -58,7 +58,7 @@ const Vendor _trevor = const Vendor(
const
List
<
Product
>
_allProducts
=
const
<
Product
>
[
const
Product
(
name:
'Vintage Brown Belt'
,
imageAsset:
'
/
products/belt.png'
,
imageAsset:
'products/belt.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
,
'latest'
],
price:
300.00
,
...
...
@@ -69,7 +69,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Sunglasses'
,
imageAsset:
'
/
products/sunnies.png'
,
imageAsset:
'products/sunnies.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'beauty'
],
price:
20.00
,
...
...
@@ -82,7 +82,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Flatwear'
,
imageAsset:
'
/
products/flatwear.png'
,
imageAsset:
'products/flatwear.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'furniture'
],
price:
30.00
,
...
...
@@ -92,7 +92,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Salmon Sweater'
,
imageAsset:
'
/
products/sweater.png'
,
imageAsset:
'products/sweater.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
],
price:
300.00
,
...
...
@@ -104,7 +104,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Pine Table'
,
imageAsset:
'
/
products/table.png'
,
imageAsset:
'products/table.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'furniture'
],
price:
63.00
,
...
...
@@ -114,7 +114,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Green Comfort Jacket'
,
imageAsset:
'
/
products/jacket.png'
,
imageAsset:
'products/jacket.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
],
price:
36.00
,
...
...
@@ -124,7 +124,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Chambray Top'
,
imageAsset:
'
/
products/top.png'
,
imageAsset:
'products/top.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
],
price:
125.00
,
...
...
@@ -134,7 +134,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Blue Cup'
,
imageAsset:
'
/
products/cup.png'
,
imageAsset:
'products/cup.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'furniture'
],
price:
75.00
,
...
...
@@ -146,7 +146,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Tea Set'
,
imageAsset:
'
/
products/teaset.png'
,
imageAsset:
'products/teaset.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'furniture'
,
'fashion'
],
price:
70.00
,
...
...
@@ -161,7 +161,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Blue linen napkins'
,
imageAsset:
'
/
products/napkins.png'
,
imageAsset:
'products/napkins.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'furniture'
,
'fashion'
],
price:
89.00
,
...
...
@@ -172,7 +172,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Dipped Earrings'
,
imageAsset:
'
/
products/earrings.png'
,
imageAsset:
'products/earrings.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
,
'beauty'
],
price:
25.00
,
...
...
@@ -184,7 +184,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Perfect Planters'
,
imageAsset:
'
/
products/planters.png'
,
imageAsset:
'products/planters.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'latest'
,
'furniture'
],
price:
30.00
,
...
...
@@ -196,7 +196,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Cloud-White Dress'
,
imageAsset:
'
/
products/dress.png'
,
imageAsset:
'products/dress.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
],
price:
54.00
,
...
...
@@ -208,7 +208,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Backpack'
,
imageAsset:
'
/
products/backpack.png'
,
imageAsset:
'products/backpack.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
],
price:
25.00
,
...
...
@@ -220,7 +220,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Charcoal Straw Hat'
,
imageAsset:
'
/
products/hat.png'
,
imageAsset:
'products/hat.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'latest'
],
price:
25.00
,
...
...
@@ -232,7 +232,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Ginger Scarf'
,
imageAsset:
'
/
products/scarf.png'
,
imageAsset:
'products/scarf.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'latest'
,
'fashion'
],
price:
17.00
,
...
...
@@ -242,7 +242,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Blush Sweats'
,
imageAsset:
'
/
products/sweats.png'
,
imageAsset:
'products/sweats.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'latest'
],
price:
25.00
,
...
...
@@ -252,7 +252,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Mint Jumper'
,
imageAsset:
'
/
products/jumper.png'
,
imageAsset:
'products/jumper.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'beauty'
],
price:
25.00
,
...
...
@@ -262,7 +262,7 @@ const List<Product> _allProducts = const <Product> [
),
const
Product
(
name:
'Ochre Shirt'
,
imageAsset:
'
/
products/shirt.png'
,
imageAsset:
'products/shirt.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
,
'latest'
],
price:
120.00
,
...
...
examples/flutter_gallery/lib/demo/video_demo.dart
View file @
226f2c1e
...
...
@@ -353,7 +353,7 @@ class _VideoDemoState extends State<VideoDemo>
with
SingleTickerProviderStateMixin
{
final
VideoPlayerController
butterflyController
=
new
VideoPlayerController
.
asset
(
'
/
videos/butterfly.mp4'
,
'videos/butterfly.mp4'
,
package:
'flutter_gallery_assets'
,
);
final
VideoPlayerController
beeController
=
new
VideoPlayerController
.
network
(
...
...
examples/flutter_gallery/lib/gallery/home.dart
View file @
226f2c1e
...
...
@@ -28,7 +28,7 @@ class _FlutterLogo extends StatelessWidget {
decoration:
const
BoxDecoration
(
image:
const
DecorationImage
(
image:
const
AssetImage
(
'
/
logos/flutter_white/logo.png'
,
'logos/flutter_white/logo.png'
,
package:
_kGalleryAssetsPackage
,
),
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment