flutter_rounded_loading_button icon indicating copy to clipboard operation
flutter_rounded_loading_button copied to clipboard

Animation lags when reset

Open sethamus opened this issue 5 years ago • 8 comments

Timer(Duration(seconds: 3), () async { _btnController.success(); await Future.delayed(Duration(seconds: 1)); _btnController.reset(); }

When the animation resets, it lags. It will stop for a moment and then continue. When I play it in slow motion it seems that the button will take the size of the text inside it and then continue to grow. That is why you see the lag

sethamus avatar Jun 11 '20 01:06 sethamus

Did u manage to fix it?

ahmed-safari avatar Aug 24 '20 05:08 ahmed-safari

I'm struggling to reproduce this one. Ran the example with the above code and I'm not seeing a lag. Could this possibly just be a simulator issue?

chrisedg87 avatar Aug 24 '20 10:08 chrisedg87

F9689A72-5CCF-44E1-B489-9D5613BAE261 Here’s a gif of the issue. Same code. Running iOS 13.5

See how the button pauses for a split second when it reaches the text widget?

ahmed-safari avatar Aug 24 '20 10:08 ahmed-safari

Did you manage to reproduce it?

ahmed-safari avatar Aug 25 '20 11:08 ahmed-safari

I'm having the same issue. Btw, thank you for the great library!

madurangae avatar Oct 21 '21 09:10 madurangae

I am seeing the same bug as well. It's easier to reproduce if you make a button with a longer label (e.g. "Login with Google").

button_lag

ultimate-tester avatar Jan 11 '22 13:01 ultimate-tester

same issue

5115191 avatar Mar 10 '22 08:03 5115191

You can see it even in the repos Readme in the gif. I think that this was the author's intention, even though it doesn't look nice.

michalvalkoun avatar May 03 '22 13:05 michalvalkoun