TwoDimensionalScrollView constructor
- Key? key,
- bool? primary,
- Axis mainAxis = Axis.vertical,
- ScrollableDetails verticalDetails = const ScrollableDetails.vertical(),
- ScrollableDetails horizontalDetails = const ScrollableDetails.horizontal(),
- required TwoDimensionalChildDelegate delegate,
- double? cacheExtent,
- DiagonalDragBehavior diagonalDragBehavior = DiagonalDragBehavior.none,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- Clip clipBehavior = Clip.hardEdge,
- HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
Creates a widget that scrolls in both dimensions.
The primary
argument is associated with the mainAxis
. The main axis
ScrollableDetails.controller must be null if primary
is configured for
that axis. If primary
is true, the nearest PrimaryScrollController
surrounding the widget is attached to the scroll position of that axis.
Implementation
const TwoDimensionalScrollView({
super.key,
this.primary,
this.mainAxis = Axis.vertical,
this.verticalDetails = const ScrollableDetails.vertical(),
this.horizontalDetails = const ScrollableDetails.horizontal(),
required this.delegate,
this.cacheExtent,
this.diagonalDragBehavior = DiagonalDragBehavior.none,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.clipBehavior = Clip.hardEdge,
this.hitTestBehavior = HitTestBehavior.opaque,
});