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

@@ -76,8 +76,7 @@ class VendorItem extends StatelessWidget {
new SizedBox(
width: 24.0,
child: new ClipRRect(
xRadius: 12.0,
yRadius: 12.0,
borderRadius: new BorderRadius.circular(12.0),
child: new Image.asset(vendor.avatarAsset, fit: ImageFit.cover)
)
),