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