Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1a933a7

Browse files
committed
Add a default BoxDecorationPosition
Fixes the tests because previously we wouldn't draw any box decorations.
1 parent 232d718 commit 1a933a7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sky/packages/sky/lib/widgets/basic.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@ class ColorFilter extends OneChildRenderObjectWrapper {
7070
}
7171

7272
class DecoratedBox extends OneChildRenderObjectWrapper {
73-
DecoratedBox({ Key key, this.decoration, this.position, Widget child })
74-
: super(key: key, child: child);
73+
DecoratedBox({
74+
Key key,
75+
this.decoration,
76+
this.position: BoxDecorationPosition.background,
77+
Widget child
78+
}) : super(key: key, child: child);
7579

7680
final BoxDecoration decoration;
7781
final BoxDecorationPosition position;

0 commit comments

Comments
 (0)