Added BorderRadius. (#5072)

* Added custom radii to RRect.

This is the first commit towads an implementation of
MergeableMaterial. It adds custom radii to RRect.

* Renamed RRect constructors and added BorderRadius.

BorderRadius is a class similar to EdgeInsets that lets you define
all rounded corners of a rounded rectangle easily.
This commit is contained in:
Dragoș Tiselice
2016-07-29 16:17:57 -07:00
committed by GitHub
parent 51f8fb9979
commit f3444fcf28
14 changed files with 206 additions and 86 deletions

View File

@@ -417,7 +417,7 @@ class ItemImageBox extends StatelessWidget {
child: new Container(
decoration: new BoxDecoration(
backgroundColor: Colors.black54,
borderRadius: 2.0
borderRadius: new BorderRadius.circular(2.0)
),
padding: new EdgeInsets.all(4.0),
child: new RichText(