Unverified Commit 9995e370 authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

Fix StarBorder operator== (#113588)

parent 021f8a54
...@@ -72,7 +72,6 @@ class _MyHomePageState extends State<MyHomePage> { ...@@ -72,7 +72,6 @@ class _MyHomePageState extends State<MyHomePage> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[ children: <Widget>[
Container( Container(
key: UniqueKey(),
alignment: Alignment.center, alignment: Alignment.center,
width: 300, width: 300,
height: 200, height: 200,
...@@ -94,7 +93,6 @@ class _MyHomePageState extends State<MyHomePage> { ...@@ -94,7 +93,6 @@ class _MyHomePageState extends State<MyHomePage> {
child: const Text('Polygon'), child: const Text('Polygon'),
), ),
Container( Container(
key: UniqueKey(),
alignment: Alignment.center, alignment: Alignment.center,
width: 300, width: 300,
height: 200, height: 200,
......
...@@ -144,7 +144,6 @@ class ExampleBorder extends StatelessWidget { ...@@ -144,7 +144,6 @@ class ExampleBorder extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
key: UniqueKey(),
alignment: Alignment.center, alignment: Alignment.center,
padding: const EdgeInsets.all(20), padding: const EdgeInsets.all(20),
width: 150, width: 150,
......
...@@ -422,7 +422,14 @@ class StarBorder extends OutlinedBorder { ...@@ -422,7 +422,14 @@ class StarBorder extends OutlinedBorder {
if (other.runtimeType != runtimeType) { if (other.runtimeType != runtimeType) {
return false; return false;
} }
return other is StarBorder && other.side == side; return other is StarBorder
&& other.side == side
&& other.points == points
&& other._innerRadiusRatio == _innerRadiusRatio
&& other.pointRounding == pointRounding
&& other.valleyRounding == valleyRounding
&& other._rotationRadians == _rotationRadians
&& other.squash == squash;
} }
@override @override
......
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