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
a2ce9483
Commit
a2ce9483
authored
Apr 19, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace Block with ScrollableList in Cards demo (#3380)
parent
1c0a9663
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
cards_demo.dart
examples/material_gallery/lib/demo/cards_demo.dart
+7
-4
No files found.
examples/material_gallery/lib/demo/cards_demo.dart
View file @
a2ce9483
...
...
@@ -41,8 +41,10 @@ class TravelDestinationItem extends StatelessWidget {
assert
(
destination
!=
null
&&
destination
.
isValid
);
}
static
final
double
height
=
328.0
;
final
TravelDestination
destination
;
@override
Widget
build
(
BuildContext
context
)
{
ThemeData
theme
=
Theme
.
of
(
context
);
...
...
@@ -50,9 +52,9 @@ class TravelDestinationItem extends StatelessWidget {
TextStyle
descriptionStyle
=
theme
.
textTheme
.
subhead
;
TextStyle
buttonStyle
=
theme
.
textTheme
.
button
.
copyWith
(
color:
theme
.
primaryColor
);
return
new
Card
(
child:
new
SizedBox
(
height:
328.0
,
return
new
SizedBox
(
height:
height
,
child:
new
Card
(
child:
new
Column
(
children:
<
Widget
>[
// photo and title
...
...
@@ -122,7 +124,8 @@ class CardsDemo extends StatelessWidget {
appBar:
new
AppBar
(
title:
new
Text
(
'Travel stream'
)
),
body:
new
Block
(
body:
new
ScrollableList
(
itemExtent:
TravelDestinationItem
.
height
,
padding:
const
EdgeInsets
.
only
(
top:
8.0
,
left:
8.0
,
right:
8.0
),
children:
destinations
.
map
((
TravelDestination
destination
)
{
return
new
Container
(
...
...
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