SGridView constructor

const SGridView({
  1. Key? key,
  2. int crossAxisItemCount = 2,
  3. required List<Widget> children,
  4. Axis mainAxisDirection = Axis.vertical,
  5. EdgeInsetsGeometry itemPadding = EdgeInsets.zero,
  6. IndexedScrollController? controller,
  7. bool showScrollIndicators = true,
  8. Color? indicatorColor,
  9. int? autoScrollToIndex,
  10. int initialIndicatorJump = 2,
  11. 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');