Support hairline borders

Previously, border with '0' was ambiguous. Sometimes we treated it as
hairline borders, sometimes as "don't show the border", though even in
the latter case we did some graphics work sometimes. Now we have an
explicit BorderStyle.none flag to not draw the border efficiently.
This commit is contained in:
Hixie
2016-03-24 12:53:17 -07:00
parent 7711b1f660
commit 9fc29dbbb8
6 changed files with 159 additions and 58 deletions

View File

@@ -64,7 +64,7 @@ class DotState extends State<Dot> {
height: config.size,
decoration: new BoxDecoration(
backgroundColor: config.color,
border: new Border.all(color: const Color(0xFF000000), width: taps.toDouble()),
border: new Border.all(width: taps.toDouble()),
shape: BoxShape.circle
),
child: config.child