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
326caa5d
Commit
326caa5d
authored
Jun 09, 2018
by
Will Larche
Committed by
xster
Jun 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Gallery] Updated assets and copy (#18324)
parent
581a343b
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
385 additions
and
403 deletions
+385
-403
main.dart
dev/benchmarks/complex_layout/lib/main.dart
+6
-6
pubspec.yaml
dev/benchmarks/complex_layout/pubspec.yaml
+4
-8
sections.dart
examples/flutter_gallery/lib/demo/animation/sections.dart
+16
-16
contacts_demo.dart
examples/flutter_gallery/lib/demo/contacts_demo.dart
+2
-2
cupertino_navigation_demo.dart
...gallery/lib/demo/cupertino/cupertino_navigation_demo.dart
+4
-4
images_demo.dart
examples/flutter_gallery/lib/demo/images_demo.dart
+10
-4
backdrop_demo.dart
...ples/flutter_gallery/lib/demo/material/backdrop_demo.dart
+48
-44
cards_demo.dart
examples/flutter_gallery/lib/demo/material/cards_demo.dart
+9
-9
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
+5
-5
grid_list_demo.dart
...les/flutter_gallery/lib/demo/material/grid_list_demo.dart
+36
-36
search_demo.dart
examples/flutter_gallery/lib/demo/material/search_demo.dart
+3
-3
tabs_demo.dart
examples/flutter_gallery/lib/demo/material/tabs_demo.dart
+27
-27
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
+95
-107
video_demo.dart
examples/flutter_gallery/lib/demo/video_demo.dart
+1
-1
home.dart
examples/flutter_gallery/lib/gallery/home.dart
+1
-1
pubspec.yaml
examples/flutter_gallery/pubspec.yaml
+86
-98
No files found.
dev/benchmarks/complex_layout/lib/main.dart
View file @
326caa5d
...
...
@@ -352,7 +352,7 @@ class UserHeader extends StatelessWidget {
const
Padding
(
padding:
const
EdgeInsets
.
only
(
right:
8.0
),
child:
const
Image
(
image:
const
AssetImage
(
'packages/flutter_gallery_assets/
ali_connors_sml
.png'
),
image:
const
AssetImage
(
'packages/flutter_gallery_assets/
people/square/ali
.png'
),
width:
32.0
,
height:
32.0
)
...
...
@@ -410,7 +410,7 @@ class ItemImageBox extends StatelessWidget {
const
SizedBox
(
height:
230.0
,
child:
const
Image
(
image:
const
AssetImage
(
'packages/flutter_gallery_assets/
top_10_australian_beaches
.png'
)
image:
const
AssetImage
(
'packages/flutter_gallery_assets/
places/india_chettinad_silk_maker
.png'
)
)
),
new
Theme
(
...
...
@@ -447,7 +447,7 @@ class ItemImageBox extends StatelessWidget {
),
const
TextSpan
(
style:
const
TextStyle
(
fontWeight:
FontWeight
.
bold
),
text:
'
Magic Mike
'
text:
'
Chris Godley
'
)
]
)
...
...
@@ -462,9 +462,9 @@ class ItemImageBox extends StatelessWidget {
child:
new
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
stretch
,
children:
<
Widget
>[
new
Text
(
'
Where can you find that amazing sunset?
'
,
style:
Theme
.
of
(
context
).
textTheme
.
body2
),
new
Text
(
'
The sun sets over stinson beach
'
,
style:
Theme
.
of
(
context
).
textTheme
.
body1
),
new
Text
(
'
flutter.io/amazingsunsets
'
,
style:
Theme
.
of
(
context
).
textTheme
.
caption
)
new
Text
(
'
Artisans of Southern India
'
,
style:
Theme
.
of
(
context
).
textTheme
.
body2
),
new
Text
(
'
Silk Spinners
'
,
style:
Theme
.
of
(
context
).
textTheme
.
body1
),
new
Text
(
'
Sivaganga, Tamil Nadu
'
,
style:
Theme
.
of
(
context
).
textTheme
.
caption
)
]
)
)
...
...
dev/benchmarks/complex_layout/pubspec.yaml
View file @
326caa5d
...
...
@@ -8,10 +8,7 @@ dependencies:
sdk
:
flutter
# Also examples/flutter_gallery/pubspec.yaml
flutter_gallery_assets
:
git
:
url
:
https://flutter.googlesource.com/gallery-assets
ref
:
43590e625ab1b07f6a5809287ce16f7e61d9e165
flutter_gallery_assets
:
0.1.3
async
:
2.0.7
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
charcode
:
1.1.1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -75,8 +72,7 @@ dev_dependencies:
flutter
:
uses-material-design
:
true
assets
:
-
packages/flutter_gallery_assets/ali_connors.png
-
packages/flutter_gallery_assets/ali_connors_sml.png
-
packages/flutter_gallery_assets/top_10_australian_beaches.png
-
packages/flutter_gallery_assets/people/square/ali.png
-
packages/flutter_gallery_assets/places/india_chettinad_silk_maker.png
# PUBSPEC CHECKSUM:
45b1
# PUBSPEC CHECKSUM:
89f2
examples/flutter_gallery/lib/demo/animation/sections.dart
View file @
326caa5d
...
...
@@ -59,59 +59,59 @@ class Section {
// image SectionDetails in the allSections list.
const
SectionDetail
_eyeglassesDetail
=
const
SectionDetail
(
imageAsset:
'
shrine
/products/sunnies.png'
,
imageAsset:
'/products/sunnies.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
);
const
SectionDetail
_eyeglassesImageDetail
=
const
SectionDetail
(
imageAsset:
'
shrine
/products/sunnies.png'
,
imageAsset:
'/products/sunnies.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
const
SectionDetail
_seatingDetail
=
const
SectionDetail
(
imageAsset:
'
shrine/products/lawn_chair
.png'
,
imageAsset:
'
/products/table
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
);
const
SectionDetail
_seatingImageDetail
=
const
SectionDetail
(
imageAsset:
'
shrine/products/lawn_chair
.png'
,
imageAsset:
'
/products/table
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
const
SectionDetail
_decorationDetail
=
const
SectionDetail
(
imageAsset:
'
shrine/products/lipstick
.png'
,
imageAsset:
'
/products/earrings
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
);
const
SectionDetail
_decorationImageDetail
=
const
SectionDetail
(
imageAsset:
'
shrine/products/lipstick
.png'
,
imageAsset:
'
/products/earrings
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
const
SectionDetail
_protectionDetail
=
const
SectionDetail
(
imageAsset:
'
shrine/products/helme
t.png'
,
imageAsset:
'
/products/ha
t.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
title:
'Flutter enables interactive animation'
,
subtitle:
'3K views - 5 days'
,
);
const
SectionDetail
_protectionImageDetail
=
const
SectionDetail
(
imageAsset:
'
shrine/products/helme
t.png'
,
imageAsset:
'
/products/ha
t.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
);
final
List
<
Section
>
allSections
=
<
Section
>[
const
Section
(
title:
'
EYE
GLASSES'
,
title:
'
SUN
GLASSES'
,
leftColor:
_mediumPurple
,
rightColor:
_mariner
,
backgroundAsset:
'
shrine
/products/sunnies.png'
,
backgroundAsset:
'/products/sunnies.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
_eyeglassesDetail
,
...
...
@@ -123,10 +123,10 @@ final List<Section> allSections = <Section>[
],
),
const
Section
(
title:
'
SEATING
'
,
title:
'
FURNITURE
'
,
leftColor:
_tomato
,
rightColor:
_mediumPurple
,
backgroundAsset:
'
shrine/products/lawn_chair
.png'
,
backgroundAsset:
'
/products/table
.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
_seatingDetail
,
...
...
@@ -138,10 +138,10 @@ final List<Section> allSections = <Section>[
],
),
const
Section
(
title:
'
DECORATION
'
,
title:
'
JEWELRY
'
,
leftColor:
_mySin
,
rightColor:
_tomato
,
backgroundAsset:
'
shrine/products/lipstick
.png'
,
backgroundAsset:
'
/products/earrings
.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
_decorationDetail
,
...
...
@@ -153,10 +153,10 @@ final List<Section> allSections = <Section>[
],
),
const
Section
(
title:
'
PROTECTION
'
,
title:
'
HEADWEAR
'
,
leftColor:
Colors
.
white
,
rightColor:
_tomato
,
backgroundAsset:
'
shrine/products/helme
t.png'
,
backgroundAsset:
'
/products/ha
t.png'
,
backgroundAssetPackage:
_kGalleryAssetsPackage
,
details:
const
<
SectionDetail
>[
_protectionDetail
,
...
...
examples/flutter_gallery/lib/demo/contacts_demo.dart
View file @
326caa5d
...
...
@@ -160,7 +160,7 @@ class ContactsDemoState extends State<ContactsDemo> {
fit:
StackFit
.
expand
,
children:
<
Widget
>[
new
Image
.
asset
(
'
ali_connors.jp
g'
,
'
/people/ali_landscape.pn
g'
,
package:
'flutter_gallery_assets'
,
fit:
BoxFit
.
cover
,
height:
_appBarHeight
,
...
...
@@ -328,7 +328,7 @@ class ContactsDemoState extends State<ContactsDemo> {
new
_ContactItem
(
lines:
const
<
String
>[
'Last day in office'
,
'August 9th, 201
5
'
,
'August 9th, 201
8
'
,
],
),
],
...
...
examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart
View file @
326caa5d
...
...
@@ -507,8 +507,8 @@ class Tab2Header extends StatelessWidget {
decoration:
const
BoxDecoration
(
image:
const
DecorationImage
(
image:
const
AssetImage
(
'
cupertino_navigation/person1.jp
g'
,
package:
_kGalleryAssetsPackage
'
/people/square/trevor.pn
g'
,
package:
_kGalleryAssetsPackage
,
),
),
shape:
BoxShape
.
circle
,
...
...
@@ -521,8 +521,8 @@ class Tab2Header extends StatelessWidget {
decoration:
const
BoxDecoration
(
image:
const
DecorationImage
(
image:
const
AssetImage
(
'
cupertino_navigation/person2.jp
g'
,
package:
_kGalleryAssetsPackage
'
/people/square/sandra.pn
g'
,
package:
_kGalleryAssetsPackage
,
),
),
shape:
BoxShape
.
circle
,
...
...
examples/flutter_gallery/lib/demo/images_demo.dart
View file @
326caa5d
...
...
@@ -11,21 +11,27 @@ class ImagesDemo extends StatelessWidget {
title:
'Animated images'
,
demos:
<
ComponentDemoTabData
>[
new
ComponentDemoTabData
(
tabName:
'
ANIMATED
WEBP'
,
tabName:
'WEBP'
,
description:
''
,
exampleCodeTag:
'animated_image'
,
demoWidget:
new
Semantics
(
label:
'Example of animated WEBP'
,
child:
new
Image
.
asset
(
'packages/flutter_gallery_assets/animated_flutter_stickers.webp'
),
child:
new
Image
.
asset
(
'/animated_images/animated_flutter_stickers.webp'
,
package:
'flutter_gallery_assets'
,
),
),
),
new
ComponentDemoTabData
(
tabName:
'
ANIMATED
GIF'
,
tabName:
'GIF'
,
description:
''
,
exampleCodeTag:
'animated_image'
,
demoWidget:
new
Semantics
(
label:
'Example of animated GIF'
,
child:
new
Image
.
asset
(
'packages/flutter_gallery_assets/animated_flutter_lgtm.gif'
),
child:
new
Image
.
asset
(
'/animated_images/animated_flutter_lgtm.gif'
,
package:
'flutter_gallery_assets'
,
),
),
),
]
...
...
examples/flutter_gallery/lib/demo/material/backdrop_demo.dart
View file @
326caa5d
...
...
@@ -20,72 +20,76 @@ class Category {
const
List
<
Category
>
allCategories
=
const
<
Category
>[
const
Category
(
title:
'
Home
'
,
title:
'
Accessories
'
,
assets:
const
<
String
>[
'shrine/products/clock.png'
,
'shrine/products/teapot.png'
,
'shrine/products/radio.png'
,
'shrine/products/lawn_chair.png'
,
'shrine/products/chair.png'
,
'/products/belt.png'
,
'/products/earrings.png'
,
'/products/backpack.png'
,
'/products/hat.png'
,
'/products/scarf.png'
,
'/products/sunnies.png'
,
],
),
const
Category
(
title:
'
Red
'
,
title:
'
Blue
'
,
assets:
const
<
String
>[
'
shrine/products/popsicle
.png'
,
'
shrine/products/brush
.png'
,
'
shrine/products/lipstick
.png'
,
'
shrine/products/backpack
.png'
,
'
/products/backpack
.png'
,
'
/products/cup
.png'
,
'
/products/napkins
.png'
,
'
/products/top
.png'
,
],
),
const
Category
(
title:
'
Sport
'
,
title:
'
Cold Weather
'
,
assets:
const
<
String
>[
'shrine/products/helmet.png'
,
'shrine/products/beachball.png'
,
'shrine/products/flippers.png'
,
'shrine/products/surfboard.png'
,
'/products/jacket.png'
,
'/products/jumper.png'
,
'/products/scarf.png'
,
'/products/sweater.png'
,
'/products/sweats.png'
,
],
),
const
Category
(
title:
'
Shoes
'
,
title:
'
Home
'
,
assets:
const
<
String
>[
'shrine/products/chucks.png'
,
'shrine/products/green-shoes.png'
,
'shrine/products/heels.png'
,
'shrine/products/flippers.png'
,
'/products/cup.png'
,
'/products/napkins.png'
,
'/products/planters.png'
,
'/products/table.png'
,
'/products/teaset.png'
,
],
),
const
Category
(
title:
'
Vision
'
,
title:
'
Tops
'
,
assets:
const
<
String
>[
'shrine/products/sunnies.png'
,
'shrine/products/binoculars.png'
,
'shrine/products/fish_bowl.png'
,
'/products/jumper.png'
,
'/products/shirt.png'
,
'/products/sweater.png'
,
'/products/top.png'
,
],
),
const
Category
(
title:
'Everything'
,
assets:
const
<
String
>[
'
shrine/products/radio
.png'
,
'
shrine/products/sunnies
.png'
,
'
shrine/products/clock
.png'
,
'
shrine/products/popsicle
.png'
,
'
shrine/products/lawn_chair
.png'
,
'
shrine/products/chai
r.png'
,
'
shrine/products/heels
.png'
,
'
shrine/products/green-shoes
.png'
,
'
shrine/products/teapot
.png'
,
'
shrine/products/chuck
s.png'
,
'
shrine/products/brush
.png'
,
'
shrine/products/fish_bowl
.png'
,
'
shrine/products/lipstick
.png'
,
'
shrine/products/backpack
.png'
,
'
shrine/products/helmet
.png'
,
'
shrine/products/beachball
.png'
,
'
shrine/products/binoculars
.png'
,
'
shrine/products/flippers
.png'
,
'
shrine/products/surfboard
.png'
,
'
/products/backpack
.png'
,
'
/products/belt
.png'
,
'
/products/cup
.png'
,
'
/products/dress
.png'
,
'
/products/earrings
.png'
,
'
/products/flatwea
r.png'
,
'
/products/hat
.png'
,
'
/products/jacket
.png'
,
'
/products/jumper
.png'
,
'
/products/napkin
s.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 @
326caa5d
...
...
@@ -25,23 +25,23 @@ class TravelDestination {
final
List
<
TravelDestination
>
destinations
=
<
TravelDestination
>[
const
TravelDestination
(
assetName:
'
top_10_australian_beaches.jp
g'
,
assetName:
'
/places/india_thanjavur_market.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'Top 10
Australian beaches
'
,
title:
'Top 10
Cities to Visit in Tamil Nadu
'
,
description:
const
<
String
>[
'Number 10'
,
'
Whitehaven Beach
'
,
'
Whitsunday Island, Whitsunday Islands
'
,
'
Thanjavur
'
,
'
Thanjavur, Tamil Nadu
'
,
],
),
const
TravelDestination
(
assetName:
'
kangaroo_valley_safari.jp
g'
,
assetName:
'
/places/india_chettinad_silk_maker.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Kangaroo Valley Safari
'
,
title:
'
Artisans of Southern India
'
,
description:
const
<
String
>[
'
2031 Moss Vale Road
'
,
'
Kangaroo Valley 2577
'
,
'
New South Wales
'
,
'
Silk Spinners
'
,
'
Chettinad
'
,
'
Sivaganga, Tamil Nadu
'
,
],
)
];
...
...
examples/flutter_gallery/lib/demo/material/chip_demo.dart
View file @
326caa5d
...
...
@@ -45,11 +45,11 @@ const List<String> _defaultTools = const <String>[
];
const
Map
<
String
,
String
>
_avatars
=
const
<
String
,
String
>{
'hammer'
:
'
shrine/vendors/ali-connors
.png'
,
'chisel'
:
'
shrine/vendors/sandra-adams.jp
g'
,
'fryer'
:
'
shrine/vendors/zach.jp
g'
,
'fabricator'
:
'
shrine/vendors/peter-carlsson
.png'
,
'customer'
:
'
shrine/vendors/16c477b.jp
g'
,
'hammer'
:
'
/people/square/ali
.png'
,
'chisel'
:
'
/people/square/sandra.pn
g'
,
'fryer'
:
'
/people/square/trevor.pn
g'
,
'fabricator'
:
'
/people/square/stella
.png'
,
'customer'
:
'
/people/square/peter.pn
g'
,
};
final
Map
<
String
,
Set
<
String
>>
_toolActions
=
<
String
,
Set
<
String
>>{
...
...
examples/flutter_gallery/lib/demo/material/drawer_demo.dart
View file @
326caa5d
...
...
@@ -4,9 +4,9 @@
import
'package:flutter/material.dart'
;
const
String
_kAsset0
=
'
shrine/vendors/zach.jp
g'
;
const
String
_kAsset1
=
'
shrine/vendors/16c477b.jp
g'
;
const
String
_kAsset2
=
'
shrine/vendors/sandra-adams.jp
g'
;
const
String
_kAsset0
=
'
/people/square/trevor.pn
g'
;
const
String
_kAsset1
=
'
/people/square/stella.pn
g'
;
const
String
_kAsset2
=
'
/people/square/sandra.pn
g'
;
const
String
_kGalleryAssetsPackage
=
'flutter_gallery_assets'
;
class
DrawerDemo
extends
StatefulWidget
{
...
...
@@ -92,8 +92,8 @@ class _DrawerDemoState extends State<DrawerDemo> with TickerProviderStateMixin {
child:
new
Column
(
children:
<
Widget
>[
new
UserAccountsDrawerHeader
(
accountName:
const
Text
(
'
Zach
Widget'
),
accountEmail:
const
Text
(
'
zach
.widget@example.com'
),
accountName:
const
Text
(
'
Trevor
Widget'
),
accountEmail:
const
Text
(
'
trevor
.widget@example.com'
),
currentAccountPicture:
const
CircleAvatar
(
backgroundImage:
const
AssetImage
(
_kAsset0
,
...
...
examples/flutter_gallery/lib/demo/material/grid_list_demo.dart
View file @
326caa5d
...
...
@@ -254,76 +254,76 @@ class GridListDemoState extends State<GridListDemo> {
List
<
Photo
>
photos
=
<
Photo
>[
new
Photo
(
assetName:
'
landscape_0.jp
g'
,
assetName:
'
/places/india_chennai_flower_market.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Philippines
'
,
caption:
'
Batad rice terraces
'
,
title:
'
Chennai
'
,
caption:
'
Flower Market
'
,
),
new
Photo
(
assetName:
'
landscape_1.jp
g'
,
assetName:
'
/places/india_tanjore_bronze_works.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Italy
'
,
caption:
'
Ceresole Reale
'
,
title:
'
Tanjore
'
,
caption:
'
Bronze Works
'
,
),
new
Photo
(
assetName:
'
landscape_2.jp
g'
,
assetName:
'
/places/india_tanjore_market_merchant.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Somewhe
re'
,
caption:
'
Beautiful mountains
'
,
title:
'
Tanjo
re'
,
caption:
'
Market
'
,
),
new
Photo
(
assetName:
'
landscape_3.jp
g'
,
assetName:
'
/places/india_tanjore_thanjavur_temple.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
A plac
e'
,
caption:
'
Beautiful hills
'
,
title:
'
Tanjor
e'
,
caption:
'
Thanjavur Temple
'
,
),
new
Photo
(
assetName:
'
landscape_4.jp
g'
,
assetName:
'
/places/india_tanjore_thanjavur_temple_carvings.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
New Zealand
'
,
caption:
'
View from the van
'
,
title:
'
Tanjore
'
,
caption:
'
Thanjavur Temple
'
,
),
new
Photo
(
assetName:
'
landscape_5.jp
g'
,
assetName:
'
/places/india_pondicherry_salt_farm.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Autumn
'
,
caption:
'
The golden season
'
,
title:
'
Pondicherry
'
,
caption:
'
Salt Farm
'
,
),
new
Photo
(
assetName:
'
landscape_6.jp
g'
,
assetName:
'
/places/india_chennai_highway.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Germany
'
,
caption:
'
Englischer Garten
'
,
title:
'
Chennai
'
,
caption:
'
Scooters
'
,
),
new
Photo
(
assetName:
'
landscape_7.jp
g'
,
assetName:
'
/places/india_chettinad_silk_maker.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
A country
'
,
caption:
'
Grass fields
'
,
title:
'
Chettinad
'
,
caption:
'
Silk Maker
'
,
),
new
Photo
(
assetName:
'
landscape_8.jp
g'
,
assetName:
'
/places/india_chettinad_produce.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Mountain country
'
,
caption:
'
River forest
'
,
title:
'
Chettinad
'
,
caption:
'
Lunch Prep
'
,
),
new
Photo
(
assetName:
'
landscape_9.jp
g'
,
assetName:
'
/places/india_tanjore_market_technology.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Alpine plac
e'
,
caption:
'
Green hills
'
,
title:
'
Tanjor
e'
,
caption:
'
Market
'
,
),
new
Photo
(
assetName:
'
landscape_10.jp
g'
,
assetName:
'
/places/india_pondicherry_beach.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Desert land
'
,
caption:
'B
lue skies
'
,
title:
'
Pondicherry
'
,
caption:
'B
each
'
,
),
new
Photo
(
assetName:
'
landscape_11.jp
g'
,
assetName:
'
/places/india_pondicherry_fisherman.pn
g'
,
assetPackage:
_kGalleryAssetsPackage
,
title:
'
Narnia
'
,
caption:
'
Rocks and rivers
'
,
title:
'
Pondicherry
'
,
caption:
'
Fisherman
'
,
),
];
...
...
examples/flutter_gallery/lib/demo/material/search_demo.dart
View file @
326caa5d
...
...
@@ -100,11 +100,11 @@ class _SearchDemoState extends State<SearchDemo> {
child:
new
Column
(
children:
<
Widget
>[
const
UserAccountsDrawerHeader
(
accountName:
const
Text
(
'
Zach
Widget'
),
accountEmail:
const
Text
(
'
zach
.widget@example.com'
),
accountName:
const
Text
(
'
Peter
Widget'
),
accountEmail:
const
Text
(
'
peter
.widget@example.com'
),
currentAccountPicture:
const
CircleAvatar
(
backgroundImage:
const
AssetImage
(
'
shrine/vendors/zach.jp
g'
,
'
/people/square/peter.pn
g'
,
package:
'flutter_gallery_assets'
,
),
),
...
...
examples/flutter_gallery/lib/demo/material/tabs_demo.dart
View file @
326caa5d
...
...
@@ -25,67 +25,67 @@ class _CardData {
}
final
Map
<
_Page
,
List
<
_CardData
>>
_allPages
=
<
_Page
,
List
<
_CardData
>>{
new
_Page
(
label:
'
LEFT
'
):
<
_CardData
>[
new
_Page
(
label:
'
HOME
'
):
<
_CardData
>[
const
_CardData
(
title:
'
Vintage Bluetooth Radio
'
,
imageAsset:
'
shrine/products/radio
.png'
,
title:
'
Flatwear
'
,
imageAsset:
'
/products/flatwear
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Sunglasses
'
,
imageAsset:
'
shrine/products/sunnies
.png'
,
title:
'
Pine Table
'
,
imageAsset:
'
/products/table
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Clock
'
,
imageAsset:
'
shrine/products/clock
.png'
,
title:
'
Blue Cup
'
,
imageAsset:
'
/products/cup
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Red popsicle
'
,
imageAsset:
'
shrine/products/popsicle
.png'
,
title:
'
Tea Set
'
,
imageAsset:
'
/products/teaset
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Folding Chair
'
,
imageAsset:
'
shrine/products/lawn_chair
.png'
,
title:
'
Desk Set
'
,
imageAsset:
'
/products/deskset
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Green comfort chair
'
,
imageAsset:
'
shrine/products/chair
.png'
,
title:
'
Blue Linen Napkins
'
,
imageAsset:
'
/products/napkins
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Old Binocula
rs'
,
imageAsset:
'
shrine/products/binocula
rs.png'
,
title:
'
Plante
rs'
,
imageAsset:
'
/products/plante
rs.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Teapot
'
,
imageAsset:
'
shrine/products/teapot
.png'
,
title:
'
Kitchen Quattro
'
,
imageAsset:
'
/products/kitchen_quattro
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Blue suede shoes
'
,
imageAsset:
'
shrine/products/chucks
.png'
,
title:
'
Platter
'
,
imageAsset:
'
/products/platter
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
],
new
_Page
(
label:
'
RIGHT
'
):
<
_CardData
>[
new
_Page
(
label:
'
APPAREL
'
):
<
_CardData
>[
const
_CardData
(
title:
'
Beachball
'
,
imageAsset:
'
shrine/products/beachball
.png'
,
title:
'
Cloud-White Dress
'
,
imageAsset:
'
/products/dress
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Dipped Brush
'
,
imageAsset:
'
shrine/products/brush
.png'
,
title:
'
Ginger Scarf
'
,
imageAsset:
'
/products/scarf
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
const
_CardData
(
title:
'
Perfect Goldfish Bowl
'
,
imageAsset:
'
shrine/products/fish_bowl
.png'
,
title:
'
Blush Sweats
'
,
imageAsset:
'
/products/sweats
.png'
,
imageAssetPackage:
_kGalleryAssetsPackage
,
),
],
...
...
@@ -108,7 +108,7 @@ class _CardDataItem extends StatelessWidget {
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
<
Widget
>[
new
Align
(
alignment:
page
.
id
==
'
L
'
alignment:
page
.
id
==
'
H
'
?
Alignment
.
centerLeft
:
Alignment
.
centerRight
,
child:
new
CircleAvatar
(
child:
new
Text
(
'
${page.id}
'
)),
...
...
examples/flutter_gallery/lib/demo/pesto_demo.dart
View file @
326caa5d
This diff is collapsed.
Click to expand it.
examples/flutter_gallery/lib/demo/shrine/shrine_data.dart
View file @
326caa5d
This diff is collapsed.
Click to expand it.
examples/flutter_gallery/lib/demo/video_demo.dart
View file @
326caa5d
...
...
@@ -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 @
326caa5d
...
...
@@ -28,7 +28,7 @@ class _FlutterLogo extends StatelessWidget {
decoration:
const
BoxDecoration
(
image:
const
DecorationImage
(
image:
const
AssetImage
(
'
white_logo
/logo.png'
,
'
/logos/flutter_white
/logo.png'
,
package:
_kGalleryAssetsPackage
,
),
),
...
...
examples/flutter_gallery/pubspec.yaml
View file @
326caa5d
This diff is collapsed.
Click to expand it.
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