TwoDimensionalScrollView constructor
- Key? key,
- bool? primary,
- Axis mainAxis = Axis.vertical,
- ScrollableDetails verticalDetails = const ScrollableDetails.vertical(),
- ScrollableDetails horizontalDetails = const ScrollableDetails.horizontal(),
- required TwoDimensionalChildDelegate delegate,
- @Deprecated('Use scrollCacheExtent instead. ' 'This feature was deprecated after v3.41.0-0.0.pre.') double? cacheExtent,
- @Deprecated('Use scrollCacheExtent instead. ' 'This feature was deprecated after v3.41.0-0.0.pre.') CacheExtentStyle? cacheExtentStyle,
- ScrollCacheExtent? scrollCacheExtent,
- DiagonalDragBehavior diagonalDragBehavior = DiagonalDragBehavior.none,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- 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,
@Deprecated(
'Use scrollCacheExtent instead. '
'This feature was deprecated after v3.41.0-0.0.pre.',
)
this.cacheExtent,
@Deprecated(
'Use scrollCacheExtent instead. '
'This feature was deprecated after v3.41.0-0.0.pre.',
)
this.cacheExtentStyle,
this.scrollCacheExtent,
this.diagonalDragBehavior = DiagonalDragBehavior.none,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior,
this.clipBehavior = Clip.hardEdge,
this.hitTestBehavior = HitTestBehavior.opaque,
});