ThreeSixtyPageView constructor

const ThreeSixtyPageView({
  1. Key? key,
  2. PageController? pageController,
  3. required IndexedWidgetBuilder itemBuilder,
  4. required int itemCount,
  5. EdgeInsets pageMargin = const EdgeInsets.all(0.0),
  6. dynamic onPageChanged(
    1. int page
    )?,
})

create a scrollable list that scroll page by page in both direction vertically and horizontally at the same time. provide a PageView.builder with ability to slide in 4 direction using the itemBuilder Callback

The itemCount, itemBuildermust not be null.

Implementation

/// provide a [PageView.builder] with ability to slide in 4 direction
/// using the [itemBuilder] Callback
///
/// The [itemCount], [itemBuilder]must not be null.
const ThreeSixtyPageView({
  Key? key,
  this.pageController,
  required this.itemBuilder,
  required this.itemCount,
  this.pageMargin = const EdgeInsets.all(0.0),
  this.onPageChanged,
}) : super(key: key);