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
9a726e85
Unverified
Commit
9a726e85
authored
Jul 21, 2023
by
Michael Goderbauer
Committed by
GitHub
Jul 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete work around for shadow drawing (#131066)
Fixes
https://github.com/flutter/flutter/issues/130737
.
parent
99a4f7e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
proxy_box.dart
packages/flutter/lib/src/rendering/proxy_box.dart
+0
-11
No files found.
packages/flutter/lib/src/rendering/proxy_box.dart
View file @
9a726e85
...
...
@@ -1908,8 +1908,6 @@ abstract class _RenderPhysicalModelBase<T> extends _RenderCustomClip<T> {
}
}
final
Paint
_transparentPaint
=
Paint
()..
color
=
const
Color
(
0x00000000
);
/// Creates a physical model layer that clips its child to a rounded
/// rectangle.
///
...
...
@@ -2113,7 +2111,6 @@ class RenderPhysicalShape extends _RenderPhysicalModelBase<Path> {
}
_updateClip
();
final
Rect
offsetBounds
=
offset
&
size
;
final
Path
offsetPath
=
_clip
!.
shift
(
offset
);
bool
paintShadows
=
true
;
assert
(()
{
...
...
@@ -2134,14 +2131,6 @@ class RenderPhysicalShape extends _RenderPhysicalModelBase<Path> {
final
Canvas
canvas
=
context
.
canvas
;
if
(
elevation
!=
0.0
&&
paintShadows
)
{
// 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
),
_transparentPaint
,
);
canvas
.
drawShadow
(
offsetPath
,
shadowColor
,
...
...
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