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:
@@ -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)
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user