CustomScrollViewerLayout constructor

const CustomScrollViewerLayout(
  1. List<Widget> children,
  2. CustomScrollDirection _navigationDirection,
  3. double _position,
  4. int _currentChildIndex,
)

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

const CustomScrollViewerLayout(List<Widget> children,
    this._navigationDirection, this._position, this._currentChildIndex)
    : super(children: children);