Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force iOS scroll behavior on Android with Flutter?

Tags:

flutter

In Android Flutter will add a GlowingOverscrollIndicator as a ScrollBehavior, I would like to know what's the name of the iOS ScrollBehavior that Flutter uses, as I can't find it on the repo and I would like to force it on both Android and iOS.

like image 806
Michel Feinstein Avatar asked Jan 26 '23 10:01

Michel Feinstein


1 Answers

iOS scroll behavior set :

physics: BouncingScrollPhysics(),

Android scroll behavior set :

physics: ClampingScrollPhysics(),

depends on platform default scroll behavior set :

physics: AlwaysScrollableScrollPhysics(),
like image 94
elhoucine ayoub Avatar answered Feb 11 '23 07:02

elhoucine ayoub