ResponsiveLayout constructor

const ResponsiveLayout({
  1. Key? key,
  2. int mobileCrossAxisCount = 1,
  3. double? mobileRatio = 1.8,
  4. required Widget builder(
    1. BuildContext context,
    2. int index
    ),
  5. required int itemCount,
  6. int? largeMobileCrossAxisCount,
  7. int? tabletCrossAxisCount,
  8. int? largeTabletCrossAxisCount,
  9. int? desktopScreenCrossAxisCount,
  10. double? largeMobileRatio,
  11. double? tabletRatio,
  12. double? largeTabletRatio,
  13. double? desktopRatio,
  14. EdgeInsetsGeometry? padding,
  15. ScrollPhysics? physics,
  16. bool? shrinkWrap,
  17. bool? reverse,
  18. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  19. ScrollController? controller,
})
  • Constructor for the Responsive class
  • key: An optional key to identify the widget.

Implementation

const ResponsiveLayout({
  Key? key,
  this.mobileCrossAxisCount = 1,
  this.mobileRatio = 1.8,
  required this.builder,
  required this.itemCount,
  this.largeMobileCrossAxisCount,
  this.tabletCrossAxisCount,
  this.largeTabletCrossAxisCount,
  this.desktopScreenCrossAxisCount,
  this.largeMobileRatio,
  this.tabletRatio,
  this.largeTabletRatio,
  this.desktopRatio,
  this.padding,
  this.physics,
  this.shrinkWrap,
  this.reverse,
  this.keyboardDismissBehavior,
  this.controller,
}) : super(key: key);