Unverified Commit 06d12a78 authored by amirh's avatar amirh Committed by GitHub

Use const constructor for RoundedRectangleBorder. (#14384)

This triggered an analysis failure only on the devicelab.
parent 0672055a
...@@ -332,7 +332,7 @@ class _MaterialState extends State<Material> with TickerProviderStateMixin { ...@@ -332,7 +332,7 @@ class _MaterialState extends State<Material> with TickerProviderStateMixin {
switch (widget.type) { switch (widget.type) {
case MaterialType.canvas: case MaterialType.canvas:
case MaterialType.transparency: case MaterialType.transparency:
return new RoundedRectangleBorder(); return const RoundedRectangleBorder();
case MaterialType.card: case MaterialType.card:
case MaterialType.button: case MaterialType.button:
...@@ -343,7 +343,7 @@ class _MaterialState extends State<Material> with TickerProviderStateMixin { ...@@ -343,7 +343,7 @@ class _MaterialState extends State<Material> with TickerProviderStateMixin {
case MaterialType.circle: case MaterialType.circle:
return const CircleBorder(); return const CircleBorder();
} }
return new RoundedRectangleBorder(); return const RoundedRectangleBorder();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment