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
2ab631b7
Commit
2ab631b7
authored
May 01, 2017
by
Jason Simmons
Committed by
GitHub
May 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add space to the clipping region of physical model layers with shadows (#9654)
parent
9c1aba2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
object.dart
packages/flutter/lib/src/rendering/object.dart
+6
-0
No files found.
packages/flutter/lib/src/rendering/object.dart
View file @
2ab631b7
...
...
@@ -472,6 +472,12 @@ class PaintingContext {
childContext
.
_stopRecordingIfNeeded
();
}
else
{
if
(
elevation
!=
0
)
{
// The drawShadow call doesn't add the region of the shadow to the
// picture's bounds, so we draw a hardcoded amount of extra space to
// account for the maximum potential area of the shadow.
// TODO(jsimmons): remove this when Skia does it for us.
canvas
.
drawRect
(
offsetBounds
.
inflate
(
20.0
),
new
Paint
()..
color
=
const
Color
(
0
));
canvas
.
drawShadow
(
new
Path
()..
addRRect
(
offsetClipRRect
),
const
Color
(
0xFF000000
),
...
...
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