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
74d403a2
Unverified
Commit
74d403a2
authored
May 03, 2021
by
Abhishek Ghaskata
Committed by
GitHub
May 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change elevation to double of MergeableMaterial (#81634)
parent
33b183e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
expansion_panel.dart
packages/flutter/lib/src/material/expansion_panel.dart
+1
-1
mergeable_material.dart
packages/flutter/lib/src/material/mergeable_material.dart
+3
-4
No files found.
packages/flutter/lib/src/material/expansion_panel.dart
View file @
74d403a2
...
...
@@ -560,7 +560,7 @@ class _ExpansionPanelListState extends State<ExpansionPanelList> {
return
MergeableMaterial
(
hasDividers:
true
,
dividerColor:
widget
.
dividerColor
,
elevation:
widget
.
elevation
,
elevation:
widget
.
elevation
.
toDouble
()
,
children:
items
,
);
}
...
...
packages/flutter/lib/src/material/mergeable_material.dart
View file @
74d403a2
...
...
@@ -123,8 +123,7 @@ class MergeableMaterial extends StatefulWidget {
/// The z-coordinate at which to place all the [Material] slices.
///
/// Defaults to 2, the appropriate elevation for cards.
// TODO(ianh): Change this to double.
final
int
elevation
;
final
double
elevation
;
/// Whether connected pieces of [MaterialSlice] have dividers between them.
final
bool
hasDividers
;
...
...
@@ -139,7 +138,7 @@ class MergeableMaterial extends StatefulWidget {
void
debugFillProperties
(
DiagnosticPropertiesBuilder
properties
)
{
super
.
debugFillProperties
(
properties
);
properties
.
add
(
EnumProperty
<
Axis
>(
'mainAxis'
,
mainAxis
));
properties
.
add
(
DoubleProperty
(
'elevation'
,
elevation
.
toDouble
()
));
properties
.
add
(
DoubleProperty
(
'elevation'
,
elevation
));
}
@override
...
...
@@ -616,7 +615,7 @@ class _MergeableMaterialState extends State<MergeableMaterial> with TickerProvid
return
_MergeableMaterialListBody
(
mainAxis:
widget
.
mainAxis
,
elevation:
widget
.
elevation
.
toDouble
()
,
elevation:
widget
.
elevation
,
items:
_children
,
children:
widgets
,
);
...
...
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