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
0bf6170c
Commit
0bf6170c
authored
Jan 19, 2016
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1297 from Hixie/dialog-PENDING
StackParentData.toString() fix, RenderOpacity default
parents
a10b1836
32cd916e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
proxy_box.dart
packages/flutter/lib/src/rendering/proxy_box.dart
+1
-1
stack.dart
packages/flutter/lib/src/rendering/stack.dart
+3
-2
No files found.
packages/flutter/lib/src/rendering/proxy_box.dart
View file @
0bf6170c
...
...
@@ -535,7 +535,7 @@ int _getAlphaFromOpacity(double opacity) => (opacity * 255).round();
/// This class is relatively expensive because it requires painting the child
/// into an intermediate buffer.
class
RenderOpacity
extends
RenderProxyBox
{
RenderOpacity
({
RenderBox
child
,
double
opacity
})
RenderOpacity
({
RenderBox
child
,
double
opacity
:
1.0
})
:
_opacity
=
opacity
,
_alpha
=
_getAlphaFromOpacity
(
opacity
),
super
(
child
)
{
assert
(
opacity
>=
0.0
&&
opacity
<=
1.0
);
}
...
...
packages/flutter/lib/src/rendering/stack.dart
View file @
0bf6170c
...
...
@@ -202,8 +202,9 @@ class StackParentData extends ContainerBoxParentDataMixin<RenderBox> {
values
.
add
(
'width=
$width
'
);
if
(
height
!=
null
)
values
.
add
(
'height=
$height
'
);
if
(
values
.
length
==
null
)
return
'all null'
;
if
(
values
.
isEmpty
)
values
.
add
(
'not positioned'
);
values
.
add
(
super
.
toString
());
return
values
.
join
(
'; '
);
}
}
...
...
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