Add OvalBorder and BoxShape.oval (#103833)

This commit is contained in:
Bernardo Ferrari
2022-07-20 18:29:04 -03:00
committed by GitHub
parent c8c2e3d399
commit 22cb06b57f
10 changed files with 349 additions and 63 deletions

View File

@@ -1525,19 +1525,15 @@ class _RendersOnPhysicalModel extends _MatchRenderObject<RenderPhysicalShape, Re
return false;
}
if (
borderRadius == null &&
if (borderRadius == null &&
shape == BoxShape.rectangle &&
!assertRoundedRectangle(shapeClipper, BorderRadius.zero, matchState)
) {
!assertRoundedRectangle(shapeClipper, BorderRadius.zero, matchState)) {
return false;
}
if (
borderRadius == null &&
if (borderRadius == null &&
shape == BoxShape.circle &&
!assertCircle(shapeClipper, matchState)
) {
!assertCircle(shapeClipper, matchState)) {
return false;
}