IntrinsicGridView.vertical constructor

IntrinsicGridView.vertical({
  1. Key? key,
  2. required List<Widget> children,
  3. int columnCount = 2,
  4. EdgeInsets margin = EdgeInsets.zero,
  5. EdgeInsets padding = EdgeInsets.zero,
  6. double horizontalSpace = 0.0,
  7. double verticalSpace = 0.0,
  8. Color backgroundColor = Colors.transparent,
})

Creates a 2D array of children, which scrolls in vertical direction.

Implementation

IntrinsicGridView.vertical({
  Key? key,
  required List<Widget> children,
  int columnCount: 2,
  EdgeInsets margin: EdgeInsets.zero,
  EdgeInsets padding: EdgeInsets.zero,
  double horizontalSpace = 0.0,
  double verticalSpace = 0.0,
  Color backgroundColor: Colors.transparent,
}) : super(key: key) {
  this._children = children;
  this._columnCount = columnCount;
  this._childMargin = EdgeInsets.symmetric(
      vertical: verticalSpace / 2, horizontal: horizontalSpace / 2);
  this._margin = margin;
  this._padding = padding;
  this._backgroundColor = backgroundColor;
}