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:
@@ -33,12 +33,12 @@ class MarkdownStyle extends MarkdownStyleRaw{
|
||||
blockquotePadding: 8.0,
|
||||
blockquoteDecoration: new BoxDecoration(
|
||||
backgroundColor: Colors.blue[100],
|
||||
borderRadius: 2.0
|
||||
borderRadius: new BorderRadius.circular(2.0)
|
||||
),
|
||||
codeblockPadding: 8.0,
|
||||
codeblockDecoration: new BoxDecoration(
|
||||
backgroundColor: Colors.grey[100],
|
||||
borderRadius: 2.0
|
||||
borderRadius: new BorderRadius.circular(2.0)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -67,12 +67,12 @@ class MarkdownStyle extends MarkdownStyleRaw{
|
||||
blockquotePadding: 8.0,
|
||||
blockquoteDecoration: new BoxDecoration(
|
||||
backgroundColor: Colors.blue[100],
|
||||
borderRadius: 2.0
|
||||
borderRadius: new BorderRadius.circular(2.0)
|
||||
),
|
||||
codeblockPadding: 8.0,
|
||||
codeblockDecoration: new BoxDecoration(
|
||||
backgroundColor: Colors.grey[100],
|
||||
borderRadius: 2.0
|
||||
borderRadius: new BorderRadius.circular(2.0)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user