getScrollPhysics method
The scroll physics to use for the platform given by getPlatform.
Defaults to RangeMaintainingScrollPhysics mixed with BouncingScrollPhysics on iOS and ClampingScrollPhysics on Android.
Implementation
@override
ScrollPhysics getScrollPhysics(BuildContext context) {
//...
if (Platform.isIOS) {
return const BouncingScrollPhysics(
parent: AlwaysScrollableScrollPhysics(),
);
}
return super.getScrollPhysics(context);
}