IntrinsicGridView.horizontal constructor

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

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

Implementation

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