CustomScrollViewerLayout constructor
Constructor for the custom scroll views layout, which used to create an infinity scroll with the list of three child passed, the current child index represents the index of current view displayed, and the position is the difference between the view's start and current position.
Widget build(BuildContext context) {
return CustomScrollViewerLayout(
_children,
CustomScrollDirection.horizontal
_position,
_currentChildIndex)
}
Implementation
CustomScrollViewerLayout(List<Widget> children, this._navigationDirection,
this._position, this._currentChildIndex)
: super(children: children);