ResponsiveRow.withAutoColumns constructor

ResponsiveRow.withAutoColumns({
  1. double? xxs = 1,
  2. double? xs = 2,
  3. double? sm = 3,
  4. double? md = 3,
  5. double? lg = 4,
  6. double? xl = 6,
  7. double? xxl = 12,
  8. dynamic children = const [],
  9. WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  10. double totalSegments = 12,
  11. double horizontalSpacing = 0,
  12. double runSpacing = 0,
  13. double? columnHeight,
  14. double? columnMaxHeight,
  15. double? columnMinHeight,
  16. Axis direction = Axis.horizontal,
  17. VerticalDirection verticalDirection = VerticalDirection.down,
  18. TextDirection textDirection = TextDirection.ltr,
  19. WrapAlignment alignment = WrapAlignment.start,
  20. WrapAlignment runAlignment = WrapAlignment.start,
})

Create a ResponsiveRow with a specific number of columns in each ScreenTier and wraps children into ResponsiveColumns automatically

Implementation

factory ResponsiveRow.withAutoColumns({
  double? xxs = 1,
  double? xs = 2,
  double? sm = 3,
  double? md = 3,
  double? lg = 4,
  double? xl = 6,
  double? xxl = 12,
  dynamic children = const [],
  WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  double totalSegments = 12,
  double horizontalSpacing = 0,
  double runSpacing = 0,
  double? columnHeight,
  double? columnMaxHeight,
  double? columnMinHeight,
  Axis direction = Axis.horizontal,
  VerticalDirection verticalDirection = VerticalDirection.down,
  TextDirection textDirection = TextDirection.ltr,
  WrapAlignment alignment = WrapAlignment.start,
  WrapAlignment runAlignment = WrapAlignment.start,
}) =>
    ResponsiveRow.withColumns(
      xxs: xxs,
      xs: xs,
      sm: sm,
      md: md,
      lg: lg,
      xl: xl,
      xxl: xxl,
      children: children,
      crossAxisAlignment: crossAxisAlignment,
      totalSegments: totalSegments,
      horizontalSpacing: horizontalSpacing,
      runSpacing: runSpacing,
      columnHeight: columnHeight,
      columnMaxHeight: columnMaxHeight,
      columnMinHeight: columnMinHeight,
      direction: direction,
      verticalDirection: verticalDirection,
      textDirection: textDirection,
      alignment: alignment,
      runAlignment: runAlignment,
    );