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
57d5de84
Commit
57d5de84
authored
Nov 30, 2016
by
Hans Muller
Committed by
GitHub
Nov 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix label text wrapping in expansion panels gallery demo (#7103)
parent
28bfbd6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
expansion_panels_demo.dart
examples/flutter_gallery/lib/demo/expansion_panels_demo.dart
+12
-5
No files found.
examples/flutter_gallery/lib/demo/expansion_panels_demo.dart
View file @
57d5de84
...
...
@@ -49,8 +49,15 @@ class DualHeaderWithHint extends StatelessWidget {
flex:
2
,
child:
new
Container
(
margin:
const
EdgeInsets
.
only
(
left:
24.0
),
child:
new
Text
(
name
,
style:
textTheme
.
body1
.
copyWith
(
fontSize:
15.0
))
)
child:
new
FittedBox
(
fit:
ImageFit
.
scaleDown
,
alignment:
FractionalOffset
.
centerLeft
,
child:
new
Text
(
name
,
style:
textTheme
.
body1
.
copyWith
(
fontSize:
15.0
),
),
),
),
),
new
Expanded
(
flex:
3
,
...
...
@@ -178,7 +185,7 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
_demoItems
=
<
DemoItem
<
dynamic
>>[
new
DemoItem
<
String
>(
name:
'Trip
name
'
,
name:
'Trip'
,
value:
'Caribbean cruise'
,
hint:
'Change trip name'
,
valueToString:
(
String
value
)
=>
value
,
...
...
@@ -282,9 +289,9 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
}
),
new
DemoItem
<
double
>(
name:
'Sun
amount
'
,
name:
'Sun'
,
value:
80.0
,
hint:
'Select
amount of sun
'
,
hint:
'Select
sun level
'
,
valueToString:
(
double
amount
)
=>
'
${amount.round()}
'
,
builder:
(
DemoItem
<
double
>
item
)
{
// ignore: argument_type_not_assignable, https://github.com/flutter/flutter/issues/5771
void
close
()
{
...
...
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