From 070722d9b4bd309023f5426859dd858d946503dd Mon Sep 17 00:00:00 2001 From: Filip Hracek Date: Tue, 22 Oct 2019 11:25:51 -0700 Subject: [PATCH] Make the spinning curve more natural `easeInOutCubic` looks better, especially at the end of the animation. From the API doc of [easeInOutCubic](https://api.flutter.dev/flutter/animation/Curves/easeInOutCubic-constant.html): > The result is a safe sweet spot when choosing a curve for a widget whose initial and final positions are both within the viewport. --- src/_packages/dartpad_picker/web/dartpad_picker_main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_packages/dartpad_picker/web/dartpad_picker_main.dart b/src/_packages/dartpad_picker/web/dartpad_picker_main.dart index ebf422eaa69..1c07105b62d 100644 --- a/src/_packages/dartpad_picker/web/dartpad_picker_main.dart +++ b/src/_packages/dartpad_picker/web/dartpad_picker_main.dart @@ -138,7 +138,7 @@ class _MyAppState extends State ); animation = Tween(begin: 0.0, end: 4 * pi) .animate(CurvedAnimation( - curve: Curves.easeInOut, + curve: Curves.easeInOutCubic, parent: controller, )); }