Commit 2e3cb06f authored by Adam Barth's avatar Adam Barth

Add a default BoxDecorationPosition

Fixes the tests because previously we wouldn't draw any box decorations.
parent 7d7ee705
......@@ -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;
......
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