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
97e58ecb
Unverified
Commit
97e58ecb
authored
Jun 20, 2018
by
Jonah Williams
Committed by
GitHub
Jun 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make expansion panel have a minHeight instead (#18623)
parent
fb8cbf21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
expansion_panel.dart
packages/flutter/lib/src/material/expansion_panel.dart
+2
-2
expansion_panel_test.dart
packages/flutter/test/material/expansion_panel_test.dart
+12
-4
No files found.
packages/flutter/lib/src/material/expansion_panel.dart
View file @
97e58ecb
...
...
@@ -143,8 +143,8 @@ class ExpansionPanelList extends StatelessWidget {
duration:
animationDuration
,
curve:
Curves
.
fastOutSlowIn
,
margin:
_isChildExpanded
(
index
)
?
kExpandedEdgeInsets
:
EdgeInsets
.
zero
,
child:
new
Siz
edBox
(
height:
_kPanelHeaderCollapsedHeight
,
child:
new
Constrain
edBox
(
constraints:
const
BoxConstraints
(
minHeight:
_kPanelHeaderCollapsedHeight
)
,
child:
children
[
index
].
headerBuilder
(
context
,
children
[
index
].
isExpanded
,
...
...
packages/flutter/test/material/expansion_panel_test.dart
View file @
97e58ecb
...
...
@@ -126,17 +126,25 @@ void main() {
animationDuration:
kSizeAnimationDuration
,
children:
<
ExpansionPanel
>[
new
ExpansionPanel
(
headerBuilder:
(
BuildContext
context
,
bool
isExpanded
)
=>
const
Placeholder
(),
body:
const
SizedBox
(
height:
100.0
,
child:
const
Placeholder
()),
headerBuilder:
(
BuildContext
context
,
bool
isExpanded
)
=>
const
Placeholder
(
fallbackHeight:
12.0
,
),
body:
const
SizedBox
(
height:
100.0
,
child:
const
Placeholder
(
fallbackHeight:
12.0
,
)),
isExpanded:
a
,
),
new
ExpansionPanel
(
headerBuilder:
(
BuildContext
context
,
bool
isExpanded
)
=>
const
Placeholder
(),
headerBuilder:
(
BuildContext
context
,
bool
isExpanded
)
=>
const
Placeholder
(
fallbackHeight:
12.0
,
),
body:
const
SizedBox
(
height:
100.0
,
child:
const
Placeholder
()),
isExpanded:
b
,
),
new
ExpansionPanel
(
headerBuilder:
(
BuildContext
context
,
bool
isExpanded
)
=>
const
Placeholder
(),
headerBuilder:
(
BuildContext
context
,
bool
isExpanded
)
=>
const
Placeholder
(
fallbackHeight:
12.0
,
),
body:
const
SizedBox
(
height:
100.0
,
child:
const
Placeholder
()),
isExpanded:
c
,
),
...
...
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