Turn off ripple effect?

237 views
Skip to first unread message

stefa...@gmail.com

unread,
Jan 12, 2016, 5:45:15 PM1/12/16
to Flutter Dev
Hey folks,
I would like to know weither there is an option to turn off the ripple effect for buttons like the FAB or the tab slider etc., I am sure this would speed up the navigation flow.
I love flutter, but right now I am having major performance issues with some apps on my HTC One S test device, and I would assume turning off the ripple effect animations would at least solve it a little bit.

I really appreciate your work!

Stefan

Seth Ladd

unread,
Jan 12, 2016, 5:57:36 PM1/12/16
to stefa...@gmail.com, Flutter Dev
Hi Stefan,

Just to be sure, make sure you are running with checked mode OFF. If you are launching from Atom, I think checked mode is ON. It's great for development, but impacts performance.

How are you running/testing your app?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To post to this group, send email to flutt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/0c867a2d-c552-4d05-8507-3029bbf7d81b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

stefa...@gmail.com

unread,
Jan 13, 2016, 5:18:55 AM1/13/16
to Flutter Dev, stefa...@gmail.com


Hey Seth,
Thanks for your answer!
I usually test apps via the flutter start command and dev mode turned on on the given test device (and Sky Shell). 
Alternatively generating an apk and installing it on the device, but changes on the code are easier testable with the first method so I mostly go for 'flutter start'.
Somehow, performance issues are visible on both methods, so i would assume reducing the animations would at least improve the apk performance.
What do you mean by tuning off the checked mode? I couldn't find it in the documentation...

Stefan

Alexandre Ardhuin

unread,
Jan 13, 2016, 8:41:02 AM1/13/16
to stefa...@gmail.com, Flutter Dev

Use "-no-checked" option when you launch "flutter start". See https://flutter.io/debugging/

Alexandre

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To post to this group, send email to flutt...@googlegroups.com.

Seth Ladd

unread,
Jan 13, 2016, 11:58:57 AM1/13/16
to Alexandre Ardhuin, Stefan Muke, Flutter Dev
Thanks Alexandre!

Yes, try your performance-related tests with --no-checked. Not only does that turn off checked mode, but it also disables asserts(). And the flutter code is full of useful assert() statements that are very costly (but, really useful in development).

Also, the VM needs to warm up (something we're working on improving). So, for your tests, also try the animation 10-15 times (with --no-checked).

Thanks, and let us know!

stefa...@gmail.com

unread,
Jan 15, 2016, 3:11:30 PM1/15/16
to Flutter Dev, stefa...@gmail.com
Hey folks,

Thanks Alexandre and Seth for your answers, indeed, performance has gone up rapidly!  However I didn't noticed any warm-up time for the VM, tested it 10 times with pretty similar outcome.

Loving Flutter more than ever, thanks again for your answers!

Stefan


Seth Ladd

unread,
Jan 15, 2016, 4:05:04 PM1/15/16
to Stefan Muke, Flutter Dev
Great to hear! Keep us posted on your progress.
 

Stefan


--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To post to this group, send email to flutt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages