I am trying to find out the iOS ScrollBehavior
name used by Flutter when adding a GlowingOverscrollIndicator
as a ScrollBehavior
in Android. I have searched the Flutter repo but have not been able to locate the name. Is there a way to force the same ScrollBehavior
on both Android and iOS?
The iOS ScrollBehavior
used by Flutter when adding a GlowingOverscrollIndicator
is called CupertinoScrollBehavior
. To force the same ScrollBehavior
on both Android and iOS, you can use the Platform.isIOS
property to check if the platform is iOS and set the ScrollBehavior
accordingly.