Grid.fill constructor

Grid.fill(
  1. Object minWidth, {
  2. Object? child,
  3. List<Object?> children = const [],
  4. Object? sm,
  5. Object? md,
  6. Object? lg,
  7. Object? xl,
  8. Object? gap,
  9. String? alignItems,
  10. String? justifyItems,
  11. String? className,
  12. Map<String, Object?> props = const {},
  13. Map<String, Object?> style = const {},
  14. DartStyle? dartStyle,
})

Creates a responsive auto-filling grid (e.g. Grid.fill(200, gap: 16, children: [...])).

Implementation

factory Grid.fill(
  Object minWidth, {
  Object? child,
  List<Object?> children = const [],
  Object? sm,
  Object? md,
  Object? lg,
  Object? xl,
  Object? gap,
  String? alignItems,
  String? justifyItems,
  String? className,
  Map<String, Object?> props = const {},
  Map<String, Object?> style = const {},
  DartStyle? dartStyle,
}) {
  return Grid(
    child: child,
    children: children,
    columns: GridCols.fill(minWidth),
    sm: sm,
    md: md,
    lg: lg,
    xl: xl,
    gap: gap,
    alignItems: alignItems,
    justifyItems: justifyItems,
    className: className,
    props: props,
    style: style,
    dartStyle: dartStyle,
  );
}