buildScrollable method
Implementation
Widget buildScrollable(AxisDirection axisDirection) {
return AntdScrollControllerProvider(
controller: scrollController,
child: Scrollable(
controller: scrollController,
physics: widget.physics,
axisDirection: axisDirection,
dragStartBehavior: widget.dragStartBehavior,
scrollBehavior: widget.scrollBehavior,
viewportBuilder: (context, offset) {
var slivers = buildSlivers();
if (widget.shrinkWrap == true) {
return ShrinkWrappingViewport(
axisDirection: axisDirection,
offset: offset,
slivers: slivers);
}
return Viewport(
axisDirection: axisDirection,
offset: offset,
cacheExtent: widget.cacheExtent,
cacheExtentStyle: widget.cacheExtentStyle,
slivers: slivers,
center: centerKey,
);
},
));
}