SGridView constructor
const
SGridView({
- Key? key,
- int crossAxisItemCount = 2,
- required List<
Widget> children, - Axis mainAxisDirection = Axis.vertical,
- EdgeInsetsGeometry itemPadding = EdgeInsets.zero,
- IndexedScrollController? controller,
- bool showScrollIndicators = true,
- Color? indicatorColor,
- int? autoScrollToIndex,
- int initialIndicatorJump = 2,
- double indicatorScrollFraction = 1.0,
Creates a SGridView.
Implementation
const SGridView({
super.key,
this.crossAxisItemCount = 2,
required this.children,
this.mainAxisDirection = Axis.vertical,
this.itemPadding = EdgeInsets.zero,
this.controller,
this.showScrollIndicators = true,
this.indicatorColor,
this.autoScrollToIndex,
this.initialIndicatorJump = 2,
this.indicatorScrollFraction = 1.0,
}) : assert(crossAxisItemCount > 0,
'crossAxisItemCount must be greater than zero'),
assert(indicatorScrollFraction > 0,
'indicatorScrollFraction must be greater than zero');