Commit ac96f74d authored by Adam Barth's avatar Adam Barth

Merge pull request #765 from abarth/layout_id_key

LayoutId should default to using its id as its key
parents c014fd37 616c6d79
......@@ -304,9 +304,10 @@ class LayoutId extends ParentDataWidget {
LayoutId({
Key key,
Widget child,
this.id
}) : super(key: key, child: child) {
Object id
}) : id = id, super(key: key ?? new ValueKey(id), child: child) {
assert(child != null);
assert(id != null);
}
final Object id;
......
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