0

I copied the sample code in the Flutter page on using FlexibleSpaceBar class to check it out on iOS and Android. It is working as expected in iOS but not stretching in Android. Is there a compatibility issue on the the version of Android it would work or are there additional steps needed to do?

Axel
  • 685
  • 5
  • 14

1 Answers1

2

Yes, by default Android use ClampingScrollPhysics whereas iOS uses BouncingScrollPhysics.

You can force it to behave equally on both by setting the physics property to BouncingScrollPhysics of your CustomScrollView or other Sliver view that you're using with it.

add physics: BouncingScrollPhysics() in NestedScrollView

Community
  • 1
  • 1
Miguel Ruivo
  • 16,035
  • 7
  • 57
  • 87