Text

'Item

$index

);

);

The ScrollBehavior now applies the Scrollbar automatically
when executing on desktop, and handles providing the ScrollController
to the Scrollbar for you.

final

ScrollController

controller

ScrollController

();

ListView

builder

controller:

controller

itemBuilder:

BuildContext

context

int

index

return

Text

'Item

$index

);

);

Some widgets in the framework are exempt from this automatic Scrollbar application. They
are:

EditableText, when maxLines is 1.

ListWheelScrollView

PageView