GriddedPageView constructor

GriddedPageView({
  1. required PageController controller,
  2. required List<Widget> children,
  3. required int minChildWidth,
  4. required int minChildHeight,
  5. ValueChanged<int>? onPageChanged,
  6. ValueChanged<int>? onPageAmountChanged,
  7. bool showIndicator = true,
  8. bool overlapIndicator = true,
  9. EdgeInsets indicatorPadding = const EdgeInsets.only(bottom: 10.0, top: 10.0),
  10. Color indicatorSelectorColor = Colors.blue,
  11. Color indicatorColor = Colors.grey,
  12. dynamic pagePadding = EdgeInsets.zero,
})

Implementation

GriddedPageView({
  required this.controller,
  required this.children,
  required this.minChildWidth,
  required this.minChildHeight,
  this.onPageChanged,
  this.onPageAmountChanged,
  this.showIndicator: true,
  this.overlapIndicator: true,
  this.indicatorPadding: const EdgeInsets.only(bottom: 10.0, top: 10.0),
  this.indicatorSelectorColor: Colors.blue,
  this.indicatorColor: Colors.grey,
  pagePadding: EdgeInsets.zero,
}) {
  this.pagePadding = overlapIndicator ? pagePadding : pagePadding.add(EdgeInsets.only(bottom: 32));
}