Document and bring sanity to BoxConstraints

Turns out many of the functions on BoxConstraints weren't used or had callers
that could easily be updated to other functions. I've added dartdoc to all the
public functions as well as renamed some functions that had similar names but
did different things.
This commit is contained in:
Adam Barth
2015-09-04 17:31:52 -07:00
parent 48f600f85d
commit 95277953aa
9 changed files with 90 additions and 87 deletions

View File

@@ -53,7 +53,7 @@ HAL: This mission is too important for me to allow you to jeopardize it.''';
Component createSeparator() {
return new Container(
constraints: const BoxConstraints.expandWidth(maxHeight: 0.0),
constraints: const BoxConstraints.expand(height: 0.0),
margin: const EdgeDims.symmetric(vertical: 10.0, horizontal: 64.0),
decoration: const BoxDecoration(
border: const Border(