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