Add a default BoxDecorationPosition
Fixes the tests because previously we wouldn't draw any box decorations.
This commit is contained in:
parent
7d7ee705d7
commit
2e3cb06fdd
@ -70,8 +70,12 @@ class ColorFilter extends OneChildRenderObjectWrapper {
|
||||
}
|
||||
|
||||
class DecoratedBox extends OneChildRenderObjectWrapper {
|
||||
DecoratedBox({ Key key, this.decoration, this.position, Widget child })
|
||||
: super(key: key, child: child);
|
||||
DecoratedBox({
|
||||
Key key,
|
||||
this.decoration,
|
||||
this.position: BoxDecorationPosition.background,
|
||||
Widget child
|
||||
}) : super(key: key, child: child);
|
||||
|
||||
final BoxDecoration decoration;
|
||||
final BoxDecorationPosition position;
|
||||
|
Loading…
x
Reference in New Issue
Block a user