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
69b4bcaf
Commit
69b4bcaf
authored
Jun 17, 2016
by
Hans Muller
Committed by
GitHub
Jun 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use an ellipsis to clip wide cards_demo titles (#4604)
parent
d11d388d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
cards_demo.dart
examples/flutter_gallery/lib/demo/cards_demo.dart
+18
-9
No files found.
examples/flutter_gallery/lib/demo/cards_demo.dart
View file @
69b4bcaf
...
...
@@ -74,7 +74,11 @@ class TravelDestinationItem extends StatelessWidget {
new
Positioned
(
bottom:
16.0
,
left:
16.0
,
child:
new
Text
(
destination
.
title
,
style:
titleStyle
)
child:
new
Text
(
destination
.
title
,
style:
titleStyle
,
softWrap:
false
,
overflow:
TextOverflow
.
ellipsis
)
)
]
)
...
...
@@ -83,14 +87,19 @@ class TravelDestinationItem extends StatelessWidget {
new
Flexible
(
child:
new
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
16.0
,
16.0
,
16.0
,
0.0
),
child:
new
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
// three line description
new
Text
(
destination
.
description
[
0
],
style:
descriptionStyle
),
new
Text
(
destination
.
description
[
1
],
style:
descriptionStyle
),
new
Text
(
destination
.
description
[
2
],
style:
descriptionStyle
),
]
child:
new
DefaultTextStyle
(
softWrap:
false
,
overflow:
TextOverflow
.
ellipsis
,
style:
descriptionStyle
,
child:
new
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
// three line description
new
Text
(
destination
.
description
[
0
]),
new
Text
(
destination
.
description
[
1
]),
new
Text
(
destination
.
description
[
2
]),
]
)
)
)
),
...
...
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