BuildContext

context

int

index

return

Text

'Item

$index

);

),

);

To change the default, users can set ScrollView.primary true or false to
explicitly manage the PrimaryScrollController for an individual ScrollView.
For behavior across multiple ScrollViews, the PrimaryScrollController is now
configurable by setting the specific platform, as well as the scroll direction
that is preferred for inheritance.

Widgets that use the PrimaryScrollController, such as NestedScrollView,
Scrollbar, and DropdownMenuButton will experience no change to existing
functionality. Features like the iOS scroll-to-top will also continue to work as
expected without any migration.