Enable avoid_redundant_argument_values lint (#91409)

This commit is contained in:
Ian Hickson
2021-10-07 20:13:02 -07:00
committed by GitHub
parent 4bf7179e51
commit 5fd259be24
667 changed files with 1693 additions and 3385 deletions

View File

@@ -39,7 +39,6 @@ final CatmullRomSpline path = CatmullRomSpline(
],
startHandle: const Offset(0.93, 0.93),
endHandle: const Offset(0.18, 0.23),
tension: 0.0,
);
class FollowCurve2D extends StatefulWidget {
@@ -74,7 +73,7 @@ class _FollowCurve2DState extends State<FollowCurve2D>
animation = CurvedAnimation(parent: controller, curve: widget.curve);
// Have the controller repeat indefinitely. If you want it to "bounce" back
// and forth, set the reverse parameter to true.
controller.repeat(reverse: false);
controller.repeat();
controller.addListener(() => setState(() {}));
}
@@ -107,7 +106,6 @@ class MyStatelessWidget extends StatelessWidget {
alignment: Alignment.center,
child: FollowCurve2D(
path: path,
curve: Curves.easeInOut,
duration: const Duration(seconds: 3),
child: CircleAvatar(
backgroundColor: Colors.yellow,