Commit 1d6a8249 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

roll engine (#9650)

parent ffdca6f7
3211d2fca262ba348a0bbcecefeb3e1b0b832faf c0f1e3b47b42d9db6f1422ebe17345e22425033d
...@@ -657,7 +657,7 @@ class PhysicalModelLayer extends ContainerLayer { ...@@ -657,7 +657,7 @@ class PhysicalModelLayer extends ContainerLayer {
void addToScene(ui.SceneBuilder builder, Offset layerOffset) { void addToScene(ui.SceneBuilder builder, Offset layerOffset) {
builder.pushPhysicalModel( builder.pushPhysicalModel(
rrect: clipRRect.shift(layerOffset), rrect: clipRRect.shift(layerOffset),
elevation: elevation, elevation: elevation.toDouble(),
color: color, color: color,
); );
addChildrenToScene(builder, layerOffset); addChildrenToScene(builder, layerOffset);
......
...@@ -475,7 +475,7 @@ class PaintingContext { ...@@ -475,7 +475,7 @@ class PaintingContext {
canvas.drawShadow( canvas.drawShadow(
new Path()..addRRect(offsetClipRRect), new Path()..addRRect(offsetClipRRect),
const Color(0xFF000000), const Color(0xFF000000),
elevation, elevation.toDouble(),
color.alpha != 0xFF, color.alpha != 0xFF,
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment