GriddedPageView constructor
GriddedPageView({
- required PageController controller,
- required List<
Widget> children, - required int minChildWidth,
- required int minChildHeight,
- ValueChanged<
int> ? onPageChanged, - ValueChanged<
int> ? onPageAmountChanged, - bool showIndicator = true,
- bool overlapIndicator = true,
- EdgeInsets indicatorPadding = const EdgeInsets.only(bottom: 10.0, top: 10.0),
- Color indicatorSelectorColor = Colors.blue,
- Color indicatorColor = Colors.grey,
- 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));
}