IntrinsicGridView.horizontal constructor
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,
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;
}