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
Hide 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 {
...
@@ -59,50 +59,50 @@ class Section {
// image SectionDetails in the allSections list.
// image SectionDetails in the allSections list.
const
SectionDetail
_eyeglassesDetail
=
const
SectionDetail
(
const
SectionDetail
_eyeglassesDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/sunnies.png'
,
imageAsset:
'products/sunnies.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
subtitle:
'3K views - 5 days'
,
);
);
const
SectionDetail
_eyeglassesImageDetail
=
const
SectionDetail
(
const
SectionDetail
_eyeglassesImageDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/sunnies.png'
,
imageAsset:
'products/sunnies.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
);
const
SectionDetail
_seatingDetail
=
const
SectionDetail
(
const
SectionDetail
_seatingDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/table.png'
,
imageAsset:
'products/table.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
subtitle:
'3K views - 5 days'
,
);
);
const
SectionDetail
_seatingImageDetail
=
const
SectionDetail
(
const
SectionDetail
_seatingImageDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/table.png'
,
imageAsset:
'products/table.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
);
const
SectionDetail
_decorationDetail
=
const
SectionDetail
(
const
SectionDetail
_decorationDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/earrings.png'
,
imageAsset:
'products/earrings.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
subtitle:
'3K views - 5 days'
,
);
);
const
SectionDetail
_decorationImageDetail
=
const
SectionDetail
(
const
SectionDetail
_decorationImageDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/earrings.png'
,
imageAsset:
'products/earrings.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
);
const
SectionDetail
_protectionDetail
=
const
SectionDetail
(
const
SectionDetail
_protectionDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/hat.png'
,
imageAsset:
'products/hat.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
subtitle:
'3K views - 5 days'
,
);
);
const
SectionDetail
_protectionImageDetail
=
const
SectionDetail
(
const
SectionDetail
_protectionImageDetail
=
const
SectionDetail
(
imageAsset:
'
/
products/hat.png'
,
imageAsset:
'products/hat.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
);
...
@@ -111,7 +111,7 @@ final List<Section> allSections = <Section>[
...
@@ -111,7 +111,7 @@ final List<Section> allSections = <Section>[
title:
'SUNGLASSES'
,
title:
'SUNGLASSES'
,
leftColor:
_mediumPurple
,
leftColor:
_mediumPurple
,
rightColor:
_mariner
,
rightColor:
_mariner
,
backgroundAsset:
'
/
products/sunnies.png'
,
backgroundAsset:
'products/sunnies.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
details:
const
<
SectionDetail
>[
_eyeglassesDetail
,
_eyeglassesDetail
,
...
@@ -126,7 +126,7 @@ final List<Section> allSections = <Section>[
...
@@ -126,7 +126,7 @@ final List<Section> allSections = <Section>[
title:
'FURNITURE'
,
title:
'FURNITURE'
,
leftColor:
_tomato
,
leftColor:
_tomato
,
rightColor:
_mediumPurple
,
rightColor:
_mediumPurple
,
backgroundAsset:
'
/
products/table.png'
,
backgroundAsset:
'products/table.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
details:
const
<
SectionDetail
>[
_seatingDetail
,
_seatingDetail
,
...
@@ -141,7 +141,7 @@ final List<Section> allSections = <Section>[
...
@@ -141,7 +141,7 @@ final List<Section> allSections = <Section>[
title:
'JEWELRY'
,
title:
'JEWELRY'
,
leftColor:
_mySin
,
leftColor:
_mySin
,
rightColor:
_tomato
,
rightColor:
_tomato
,
backgroundAsset:
'
/
products/earrings.png'
,
backgroundAsset:
'products/earrings.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
details:
const
<
SectionDetail
>[
_decorationDetail
,
_decorationDetail
,
...
@@ -156,7 +156,7 @@ final List<Section> allSections = <Section>[
...
@@ -156,7 +156,7 @@ final List<Section> allSections = <Section>[
title:
'HEADWEAR'
,
title:
'HEADWEAR'
,
leftColor:
Colors
.
white
,
leftColor:
Colors
.
white
,
rightColor:
_tomato
,
rightColor:
_tomato
,
backgroundAsset:
'
/
products/hat.png'
,
backgroundAsset:
'products/hat.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
details:
const
<
SectionDetail
>[
_protectionDetail
,
_protectionDetail
,
...
...
examples/flutter_gallery/lib/demo/contacts_demo.dart
View file @
226f2c1e
...
@@ -160,7 +160,7 @@ class ContactsDemoState extends State<ContactsDemo> {
...
@@ -160,7 +160,7 @@ class ContactsDemoState extends State<ContactsDemo> {
fit:
StackFit
.
expand
,
fit:
StackFit
.
expand
,
children:
<
Widget
>[
children:
<
Widget
>[
new
Image
.
asset
(
new
Image
.
asset
(
'
/
people/ali_landscape.png'
,
'people/ali_landscape.png'
,
package:
'flutter_gallery_assets'
,
package:
'flutter_gallery_assets'
,
fit:
BoxFit
.
cover
,
fit:
BoxFit
.
cover
,
height:
_appBarHeight
,
height:
_appBarHeight
,
...
...
examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart
View file @
226f2c1e
...
@@ -507,7 +507,7 @@ class Tab2Header extends StatelessWidget {
...
@@ -507,7 +507,7 @@ class Tab2Header extends StatelessWidget {
decoration:
const
BoxDecoration
(
decoration:
const
BoxDecoration
(
image:
const
DecorationImage
(
image:
const
DecorationImage
(
image:
const
AssetImage
(
image:
const
AssetImage
(
'
/
people/square/trevor.png'
,
'people/square/trevor.png'
,
package:
_kGalleryAssetsPackage
,
package:
_kGalleryAssetsPackage
,
),
),
),
),
...
@@ -521,7 +521,7 @@ class Tab2Header extends StatelessWidget {
...
@@ -521,7 +521,7 @@ class Tab2Header extends StatelessWidget {
decoration:
const
BoxDecoration
(
decoration:
const
BoxDecoration
(
image:
const
DecorationImage
(
image:
const
DecorationImage
(
image:
const
AssetImage
(
image:
const
AssetImage
(
'
/
people/square/sandra.png'
,
'people/square/sandra.png'
,
package:
_kGalleryAssetsPackage
,
package:
_kGalleryAssetsPackage
,
),
),
),
),
...
...
examples/flutter_gallery/lib/demo/images_demo.dart
View file @
226f2c1e
...
@@ -17,7 +17,7 @@ class ImagesDemo extends StatelessWidget {
...
@@ -17,7 +17,7 @@ class ImagesDemo extends StatelessWidget {
demoWidget:
new
Semantics
(
demoWidget:
new
Semantics
(
label:
'Example of animated WEBP'
,
label:
'Example of animated WEBP'
,
child:
new
Image
.
asset
(
child:
new
Image
.
asset
(
'
/
animated_images/animated_flutter_stickers.webp'
,
'animated_images/animated_flutter_stickers.webp'
,
package:
'flutter_gallery_assets'
,
package:
'flutter_gallery_assets'
,
),
),
),
),
...
@@ -29,7 +29,7 @@ class ImagesDemo extends StatelessWidget {
...
@@ -29,7 +29,7 @@ class ImagesDemo extends StatelessWidget {
demoWidget:
new
Semantics
(
demoWidget:
new
Semantics
(
label:
'Example of animated GIF'
,
label:
'Example of animated GIF'
,
child:
new
Image
.
asset
(
child:
new
Image
.
asset
(
'
/
animated_images/animated_flutter_lgtm.gif'
,
'animated_images/animated_flutter_lgtm.gif'
,
package:
'flutter_gallery_assets'
,
package:
'flutter_gallery_assets'
,
),
),
),
),
...
...
examples/flutter_gallery/lib/demo/material/backdrop_demo.dart
View file @
226f2c1e
...
@@ -22,74 +22,74 @@ const List<Category> allCategories = const <Category>[
...
@@ -22,74 +22,74 @@ const List<Category> allCategories = const <Category>[
const
Category
(
const
Category
(
title:
'Accessories'
,
title:
'Accessories'
,
assets:
const
<
String
>[
assets:
const
<
String
>[
'
/
products/belt.png'
,
'products/belt.png'
,
'
/
products/earrings.png'
,
'products/earrings.png'
,
'
/
products/backpack.png'
,
'products/backpack.png'
,
'
/
products/hat.png'
,
'products/hat.png'
,
'
/
products/scarf.png'
,
'products/scarf.png'
,
'
/
products/sunnies.png'
,
'products/sunnies.png'
,
],
],
),
),
const
Category
(
const
Category
(
title:
'Blue'
,
title:
'Blue'
,
assets:
const
<
String
>[
assets:
const
<
String
>[
'
/
products/backpack.png'
,
'products/backpack.png'
,
'
/
products/cup.png'
,
'products/cup.png'
,
'
/
products/napkins.png'
,
'products/napkins.png'
,
'
/
products/top.png'
,
'products/top.png'
,
],
],
),
),
const
Category
(
const
Category
(
title:
'Cold Weather'
,
title:
'Cold Weather'
,
assets:
const
<
String
>[
assets:
const
<
String
>[
'
/
products/jacket.png'
,
'products/jacket.png'
,
'
/
products/jumper.png'
,
'products/jumper.png'
,
'
/
products/scarf.png'
,
'products/scarf.png'
,
'
/
products/sweater.png'
,
'products/sweater.png'
,
'
/
products/sweats.png'
,
'products/sweats.png'
,
],
],
),
),
const
Category
(
const
Category
(
title:
'Home'
,
title:
'Home'
,
assets:
const
<
String
>[
assets:
const
<
String
>[
'
/
products/cup.png'
,
'products/cup.png'
,
'
/
products/napkins.png'
,
'products/napkins.png'
,
'
/
products/planters.png'
,
'products/planters.png'
,
'
/
products/table.png'
,
'products/table.png'
,
'
/
products/teaset.png'
,
'products/teaset.png'
,
],
],
),
),
const
Category
(
const
Category
(
title:
'Tops'
,
title:
'Tops'
,
assets:
const
<
String
>[
assets:
const
<
String
>[
'
/
products/jumper.png'
,
'products/jumper.png'
,
'
/
products/shirt.png'
,
'products/shirt.png'
,
'
/
products/sweater.png'
,
'products/sweater.png'
,
'
/
products/top.png'
,
'products/top.png'
,
],
],
),
),
const
Category
(
const
Category
(
title:
'Everything'
,
title:
'Everything'
,
assets:
const
<
String
>[
assets:
const
<
String
>[
'
/
products/backpack.png'
,
'products/backpack.png'
,
'
/
products/belt.png'
,
'products/belt.png'
,
'
/
products/cup.png'
,
'products/cup.png'
,
'
/
products/dress.png'
,
'products/dress.png'
,
'
/
products/earrings.png'
,
'products/earrings.png'
,
'
/
products/flatwear.png'
,
'products/flatwear.png'
,
'
/
products/hat.png'
,
'products/hat.png'
,
'
/
products/jacket.png'
,
'products/jacket.png'
,
'
/
products/jumper.png'
,
'products/jumper.png'
,
'
/
products/napkins.png'
,
'products/napkins.png'
,
'
/
products/planters.png'
,
'products/planters.png'
,
'
/
products/scarf.png'
,
'products/scarf.png'
,
'
/
products/shirt.png'
,
'products/shirt.png'
,
'
/
products/sunnies.png'
,
'products/sunnies.png'
,
'
/
products/sweater.png'
,
'products/sweater.png'
,
'
/
products/sweats.png'
,
'products/sweats.png'
,
'
/
products/table.png'
,
'products/table.png'
,
'
/
products/teaset.png'
,
'products/teaset.png'
,
'
/
products/top.png'
,
'products/top.png'
,
],
],
),
),
];
];
...
...
examples/flutter_gallery/lib/demo/material/cards_demo.dart
View file @
226f2c1e
...
@@ -25,7 +25,7 @@ class TravelDestination {
...
@@ -25,7 +25,7 @@ class TravelDestination {
final
List
<
TravelDestination
>
destinations
=
<
TravelDestination
>[
final
List
<
TravelDestination
>
destinations
=
<
TravelDestination
>[
const
TravelDestination
(
const
TravelDestination
(
assetName:
'
/
places/india_thanjavur_market.png'
,
assetName:
'places/india_thanjavur_market.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Top 10 Cities to Visit in Tamil Nadu'
,
title:
'Top 10 Cities to Visit in Tamil Nadu'
,
description:
const
<
String
>[
description:
const
<
String
>[
...
@@ -35,7 +35,7 @@ final List<TravelDestination> destinations = <TravelDestination>[
...
@@ -35,7 +35,7 @@ final List<TravelDestination> destinations = <TravelDestination>[
],
],
),
),
const
TravelDestination
(
const
TravelDestination
(
assetName:
'
/
places/india_chettinad_silk_maker.png'
,
assetName:
'places/india_chettinad_silk_maker.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Artisans of Southern India'
,
title:
'Artisans of Southern India'
,
description:
const
<
String
>[
description:
const
<
String
>[
...
...
examples/flutter_gallery/lib/demo/material/chip_demo.dart
View file @
226f2c1e
...
@@ -45,11 +45,11 @@ const List<String> _defaultTools = const <String>[
...
@@ -45,11 +45,11 @@ const List<String> _defaultTools = const <String>[
];
];
const
Map
<
String
,
String
>
_avatars
=
const
<
String
,
String
>{
const
Map
<
String
,
String
>
_avatars
=
const
<
String
,
String
>{
'hammer'
:
'
/
people/square/ali.png'
,
'hammer'
:
'people/square/ali.png'
,
'chisel'
:
'
/
people/square/sandra.png'
,
'chisel'
:
'people/square/sandra.png'
,
'fryer'
:
'
/
people/square/trevor.png'
,
'fryer'
:
'people/square/trevor.png'
,
'fabricator'
:
'
/
people/square/stella.png'
,
'fabricator'
:
'people/square/stella.png'
,
'customer'
:
'
/
people/square/peter.png'
,
'customer'
:
'people/square/peter.png'
,
};
};
final
Map
<
String
,
Set
<
String
>>
_toolActions
=
<
String
,
Set
<
String
>>{
final
Map
<
String
,
Set
<
String
>>
_toolActions
=
<
String
,
Set
<
String
>>{
...
...
examples/flutter_gallery/lib/demo/material/drawer_demo.dart
View file @
226f2c1e
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
const
String
_kAsset0
=
'
/
people/square/trevor.png'
;
const
String
_kAsset0
=
'people/square/trevor.png'
;
const
String
_kAsset1
=
'
/
people/square/stella.png'
;
const
String
_kAsset1
=
'people/square/stella.png'
;
const
String
_kAsset2
=
'
/
people/square/sandra.png'
;
const
String
_kAsset2
=
'people/square/sandra.png'
;
const
String
_kGalleryAssetsPackage
=
'flutter_gallery_assets'
;
const
String
_kGalleryAssetsPackage
=
'flutter_gallery_assets'
;
class
DrawerDemo
extends
StatefulWidget
{
class
DrawerDemo
extends
StatefulWidget
{
...
...
examples/flutter_gallery/lib/demo/material/grid_list_demo.dart
View file @
226f2c1e
...
@@ -254,73 +254,73 @@ class GridListDemoState extends State<GridListDemo> {
...
@@ -254,73 +254,73 @@ class GridListDemoState extends State<GridListDemo> {
List
<
Photo
>
photos
=
<
Photo
>[
List
<
Photo
>
photos
=
<
Photo
>[
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_chennai_flower_market.png'
,
assetName:
'places/india_chennai_flower_market.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Chennai'
,
title:
'Chennai'
,
caption:
'Flower Market'
,
caption:
'Flower Market'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_tanjore_bronze_works.png'
,
assetName:
'places/india_tanjore_bronze_works.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
title:
'Tanjore'
,
caption:
'Bronze Works'
,
caption:
'Bronze Works'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_tanjore_market_merchant.png'
,
assetName:
'places/india_tanjore_market_merchant.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
title:
'Tanjore'
,
caption:
'Market'
,
caption:
'Market'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_tanjore_thanjavur_temple.png'
,
assetName:
'places/india_tanjore_thanjavur_temple.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
title:
'Tanjore'
,
caption:
'Thanjavur Temple'
,
caption:
'Thanjavur Temple'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_tanjore_thanjavur_temple_carvings.png'
,
assetName:
'places/india_tanjore_thanjavur_temple_carvings.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
title:
'Tanjore'
,
caption:
'Thanjavur Temple'
,
caption:
'Thanjavur Temple'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_pondicherry_salt_farm.png'
,
assetName:
'places/india_pondicherry_salt_farm.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Pondicherry'
,
title:
'Pondicherry'
,
caption:
'Salt Farm'
,
caption:
'Salt Farm'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_chennai_highway.png'
,
assetName:
'places/india_chennai_highway.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Chennai'
,
title:
'Chennai'
,
caption:
'Scooters'
,
caption:
'Scooters'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_chettinad_silk_maker.png'
,
assetName:
'places/india_chettinad_silk_maker.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Chettinad'
,
title:
'Chettinad'
,
caption:
'Silk Maker'
,
caption:
'Silk Maker'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_chettinad_produce.png'
,
assetName:
'places/india_chettinad_produce.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Chettinad'
,
title:
'Chettinad'
,
caption:
'Lunch Prep'
,
caption:
'Lunch Prep'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_tanjore_market_technology.png'
,
assetName:
'places/india_tanjore_market_technology.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Tanjore'
,
title:
'Tanjore'
,
caption:
'Market'
,
caption:
'Market'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_pondicherry_beach.png'
,
assetName:
'places/india_pondicherry_beach.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Pondicherry'
,
title:
'Pondicherry'
,
caption:
'Beach'
,
caption:
'Beach'
,
),
),
new
Photo
(
new
Photo
(
assetName:
'
/
places/india_pondicherry_fisherman.png'
,
assetName:
'places/india_pondicherry_fisherman.png'
,
assetPackage:
_kGalleryAssetsPackage
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Pondicherry'
,
title:
'Pondicherry'
,
caption:
'Fisherman'
,
caption:
'Fisherman'
,
...
...
examples/flutter_gallery/lib/demo/material/search_demo.dart
View file @
226f2c1e
...
@@ -104,7 +104,7 @@ class _SearchDemoState extends State<SearchDemo> {
...
@@ -104,7 +104,7 @@ class _SearchDemoState extends State<SearchDemo> {
accountEmail:
const
Text
(
'peter.widget@example.com'
),
accountEmail:
const
Text
(
'peter.widget@example.com'
),
currentAccountPicture:
const
CircleAvatar
(
currentAccountPicture:
const
CircleAvatar
(
backgroundImage:
const
AssetImage
(
backgroundImage:
const
AssetImage
(
'
/
people/square/peter.png'
,
'people/square/peter.png'
,
package:
'flutter_gallery_assets'
,
package:
'flutter_gallery_assets'
,
),
),
),
),
...
...
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>>{
...
@@ -28,64 +28,64 @@ final Map<_Page, List<_CardData>> _allPages = <_Page, List<_CardData>>{
new
_Page
(
label:
'HOME'
):
<
_CardData
>[
new
_Page
(
label:
'HOME'
):
<
_CardData
>[
const
_CardData
(
const
_CardData
(
title:
'Flatwear'
,
title:
'Flatwear'
,
imageAsset:
'
/
products/flatwear.png'
,
imageAsset:
'products/flatwear.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Pine Table'
,
title:
'Pine Table'
,
imageAsset:
'
/
products/table.png'
,
imageAsset:
'products/table.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Blue Cup'
,
title:
'Blue Cup'
,
imageAsset:
'
/
products/cup.png'
,
imageAsset:
'products/cup.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Tea Set'
,
title:
'Tea Set'
,
imageAsset:
'
/
products/teaset.png'
,
imageAsset:
'products/teaset.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Desk Set'
,
title:
'Desk Set'
,
imageAsset:
'
/
products/deskset.png'
,
imageAsset:
'products/deskset.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Blue Linen Napkins'
,
title:
'Blue Linen Napkins'
,
imageAsset:
'
/
products/napkins.png'
,
imageAsset:
'products/napkins.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Planters'
,
title:
'Planters'
,
imageAsset:
'
/
products/planters.png'
,
imageAsset:
'products/planters.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Kitchen Quattro'
,
title:
'Kitchen Quattro'
,
imageAsset:
'
/
products/kitchen_quattro.png'
,
imageAsset:
'products/kitchen_quattro.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Platter'
,
title:
'Platter'
,
imageAsset:
'
/
products/platter.png'
,
imageAsset:
'products/platter.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
],
],
new
_Page
(
label:
'APPAREL'
):
<
_CardData
>[
new
_Page
(
label:
'APPAREL'
):
<
_CardData
>[
const
_CardData
(
const
_CardData
(
title:
'Cloud-White Dress'
,
title:
'Cloud-White Dress'
,
imageAsset:
'
/
products/dress.png'
,
imageAsset:
'products/dress.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Ginger Scarf'
,
title:
'Ginger Scarf'
,
imageAsset:
'
/
products/scarf.png'
,
imageAsset:
'products/scarf.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
const
_CardData
(
const
_CardData
(
title:
'Blush Sweats'
,
title:
'Blush Sweats'
,
imageAsset:
'
/
products/sweats.png'
,
imageAsset:
'products/sweats.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
),
],
],
...
...
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';
...
@@ -8,7 +8,7 @@ const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
const
Vendor
_ali
=
const
Vendor
(
const
Vendor
_ali
=
const
Vendor
(
name:
'Ali’s shop'
,
name:
'Ali’s shop'
,
avatarAsset:
'
/
people/square/ali.png'
,
avatarAsset:
'people/square/ali.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
description:
'Ali Connor’s makes custom goods for folks of all shapes and sizes '
'Ali Connor’s makes custom goods for folks of all shapes and sizes '
...
@@ -18,7 +18,7 @@ const Vendor _ali = const Vendor(
...
@@ -18,7 +18,7 @@ const Vendor _ali = const Vendor(
const
Vendor
_peter
=
const
Vendor
(
const
Vendor
_peter
=
const
Vendor
(
name:
'Peter’s shop'
,
name:
'Peter’s shop'
,
avatarAsset:
'
/
people/square/peter.png'
,
avatarAsset:
'people/square/peter.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
description:
'Peter makes great stuff for awesome people like you. Super cool and extra '
'Peter makes great stuff for awesome people like you. Super cool and extra '
...
@@ -28,7 +28,7 @@ const Vendor _peter = const Vendor(
...
@@ -28,7 +28,7 @@ const Vendor _peter = const Vendor(
const
Vendor
_sandra
=
const
Vendor
(
const
Vendor
_sandra
=
const
Vendor
(
name:
'Sandra’s shop'
,
name:
'Sandra’s shop'
,
avatarAsset:
'
/
people/square/sandra.png'
,
avatarAsset:
'people/square/sandra.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
description:
'Sandra specializes in furniture, beauty and travel products with a classic vibe. '
'Sandra specializes in furniture, beauty and travel products with a classic vibe. '
...
@@ -37,7 +37,7 @@ const Vendor _sandra = const Vendor(
...
@@ -37,7 +37,7 @@ const Vendor _sandra = const Vendor(
const
Vendor
_stella
=
const
Vendor
(
const
Vendor
_stella
=
const
Vendor
(
name:
'Stella’s shop'
,
name:
'Stella’s shop'
,
avatarAsset:
'
/
people/square/stella.png'
,
avatarAsset:
'people/square/stella.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
description:
'Stella sells awesome stuff at lovely prices. made by hand and sometimes by '
'Stella sells awesome stuff at lovely prices. made by hand and sometimes by '
...
@@ -47,7 +47,7 @@ const Vendor _stella = const Vendor(
...
@@ -47,7 +47,7 @@ const Vendor _stella = const Vendor(
const
Vendor
_trevor
=
const
Vendor
(
const
Vendor
_trevor
=
const
Vendor
(
name:
'Trevor’s shop'
,
name:
'Trevor’s shop'
,
avatarAsset:
'
/
people/square/trevor.png'
,
avatarAsset:
'people/square/trevor.png'
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
avatarAssetPackage:
_kGalleryAssetsPackage
,
description:
description:
'Trevor makes great stuff for awesome people like you. Super cool and extra '
'Trevor makes great stuff for awesome people like you. Super cool and extra '
...
@@ -58,7 +58,7 @@ const Vendor _trevor = const Vendor(
...
@@ -58,7 +58,7 @@ const Vendor _trevor = const Vendor(
const
List
<
Product
>
_allProducts
=
const
<
Product
>
[
const
List
<
Product
>
_allProducts
=
const
<
Product
>
[
const
Product
(
const
Product
(
name:
'Vintage Brown Belt'
,
name:
'Vintage Brown Belt'
,
imageAsset:
'
/
products/belt.png'
,
imageAsset:
'products/belt.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
,
'latest'
],
categories:
const
<
String
>[
'fashion'
,
'latest'
],
price:
300.00
,
price:
300.00
,
...
@@ -69,7 +69,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -69,7 +69,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Sunglasses'
,
name:
'Sunglasses'
,
imageAsset:
'
/
products/sunnies.png'
,
imageAsset:
'products/sunnies.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'beauty'
],
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'beauty'
],
price:
20.00
,
price:
20.00
,
...
@@ -82,7 +82,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -82,7 +82,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Flatwear'
,
name:
'Flatwear'
,
imageAsset:
'
/
products/flatwear.png'
,
imageAsset:
'products/flatwear.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'furniture'
],
categories:
const
<
String
>[
'furniture'
],
price:
30.00
,
price:
30.00
,
...
@@ -92,7 +92,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -92,7 +92,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Salmon Sweater'
,
name:
'Salmon Sweater'
,
imageAsset:
'
/
products/sweater.png'
,
imageAsset:
'products/sweater.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
],
categories:
const
<
String
>[
'fashion'
],
price:
300.00
,
price:
300.00
,
...
@@ -104,7 +104,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -104,7 +104,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Pine Table'
,
name:
'Pine Table'
,
imageAsset:
'
/
products/table.png'
,
imageAsset:
'products/table.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'furniture'
],
categories:
const
<
String
>[
'furniture'
],
price:
63.00
,
price:
63.00
,
...
@@ -114,7 +114,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -114,7 +114,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Green Comfort Jacket'
,
name:
'Green Comfort Jacket'
,
imageAsset:
'
/
products/jacket.png'
,
imageAsset:
'products/jacket.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
],
categories:
const
<
String
>[
'fashion'
],
price:
36.00
,
price:
36.00
,
...
@@ -124,7 +124,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -124,7 +124,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Chambray Top'
,
name:
'Chambray Top'
,
imageAsset:
'
/
products/top.png'
,
imageAsset:
'products/top.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
],
categories:
const
<
String
>[
'fashion'
],
price:
125.00
,
price:
125.00
,
...
@@ -134,7 +134,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -134,7 +134,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Blue Cup'
,
name:
'Blue Cup'
,
imageAsset:
'
/
products/cup.png'
,
imageAsset:
'products/cup.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'furniture'
],
categories:
const
<
String
>[
'travel'
,
'furniture'
],
price:
75.00
,
price:
75.00
,
...
@@ -146,7 +146,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -146,7 +146,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Tea Set'
,
name:
'Tea Set'
,
imageAsset:
'
/
products/teaset.png'
,
imageAsset:
'products/teaset.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'furniture'
,
'fashion'
],
categories:
const
<
String
>[
'furniture'
,
'fashion'
],
price:
70.00
,
price:
70.00
,
...
@@ -161,7 +161,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -161,7 +161,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Blue linen napkins'
,
name:
'Blue linen napkins'
,
imageAsset:
'
/
products/napkins.png'
,
imageAsset:
'products/napkins.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'furniture'
,
'fashion'
],
categories:
const
<
String
>[
'furniture'
,
'fashion'
],
price:
89.00
,
price:
89.00
,
...
@@ -172,7 +172,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -172,7 +172,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Dipped Earrings'
,
name:
'Dipped Earrings'
,
imageAsset:
'
/
products/earrings.png'
,
imageAsset:
'products/earrings.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
,
'beauty'
],
categories:
const
<
String
>[
'fashion'
,
'beauty'
],
price:
25.00
,
price:
25.00
,
...
@@ -184,7 +184,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -184,7 +184,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Perfect Planters'
,
name:
'Perfect Planters'
,
imageAsset:
'
/
products/planters.png'
,
imageAsset:
'products/planters.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'latest'
,
'furniture'
],
categories:
const
<
String
>[
'latest'
,
'furniture'
],
price:
30.00
,
price:
30.00
,
...
@@ -196,7 +196,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -196,7 +196,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Cloud-White Dress'
,
name:
'Cloud-White Dress'
,
imageAsset:
'
/
products/dress.png'
,
imageAsset:
'products/dress.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
],
categories:
const
<
String
>[
'fashion'
],
price:
54.00
,
price:
54.00
,
...
@@ -208,7 +208,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -208,7 +208,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Backpack'
,
name:
'Backpack'
,
imageAsset:
'
/
products/backpack.png'
,
imageAsset:
'products/backpack.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
],
categories:
const
<
String
>[
'travel'
,
'fashion'
],
price:
25.00
,
price:
25.00
,
...
@@ -220,7 +220,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -220,7 +220,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Charcoal Straw Hat'
,
name:
'Charcoal Straw Hat'
,
imageAsset:
'
/
products/hat.png'
,
imageAsset:
'products/hat.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'latest'
],
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'latest'
],
price:
25.00
,
price:
25.00
,
...
@@ -232,7 +232,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -232,7 +232,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Ginger Scarf'
,
name:
'Ginger Scarf'
,
imageAsset:
'
/
products/scarf.png'
,
imageAsset:
'products/scarf.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'latest'
,
'fashion'
],
categories:
const
<
String
>[
'latest'
,
'fashion'
],
price:
17.00
,
price:
17.00
,
...
@@ -242,7 +242,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -242,7 +242,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Blush Sweats'
,
name:
'Blush Sweats'
,
imageAsset:
'
/
products/sweats.png'
,
imageAsset:
'products/sweats.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'latest'
],
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'latest'
],
price:
25.00
,
price:
25.00
,
...
@@ -252,7 +252,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -252,7 +252,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Mint Jumper'
,
name:
'Mint Jumper'
,
imageAsset:
'
/
products/jumper.png'
,
imageAsset:
'products/jumper.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'beauty'
],
categories:
const
<
String
>[
'travel'
,
'fashion'
,
'beauty'
],
price:
25.00
,
price:
25.00
,
...
@@ -262,7 +262,7 @@ const List<Product> _allProducts = const <Product> [
...
@@ -262,7 +262,7 @@ const List<Product> _allProducts = const <Product> [
),
),
const
Product
(
const
Product
(
name:
'Ochre Shirt'
,
name:
'Ochre Shirt'
,
imageAsset:
'
/
products/shirt.png'
,
imageAsset:
'products/shirt.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
imageAssetPackage:
_kGalleryAssetsPackage
,
categories:
const
<
String
>[
'fashion'
,
'latest'
],
categories:
const
<
String
>[
'fashion'
,
'latest'
],
price:
120.00
,
price:
120.00
,
...
...
examples/flutter_gallery/lib/demo/video_demo.dart
View file @
226f2c1e
...
@@ -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
(
...
...
examples/flutter_gallery/lib/gallery/home.dart
View file @
226f2c1e
...
@@ -28,7 +28,7 @@ class _FlutterLogo extends StatelessWidget {
...
@@ -28,7 +28,7 @@ class _FlutterLogo extends StatelessWidget {
decoration:
const
BoxDecoration
(
decoration:
const
BoxDecoration
(
image:
const
DecorationImage
(
image:
const
DecorationImage
(
image:
const
AssetImage
(
image:
const
AssetImage
(
'
/
logos/flutter_white/logo.png'
,
'logos/flutter_white/logo.png'
,
package:
_kGalleryAssetsPackage
,
package:
_kGalleryAssetsPackage
,
),
),
),
),
...
...
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