ResponsiveLayout constructor
const
ResponsiveLayout({
- Key? key,
- int mobileCrossAxisCount = 1,
- double? mobileRatio = 1.8,
- required Widget builder(
- BuildContext context,
- int index
- required int itemCount,
- int? largeMobileCrossAxisCount,
- int? tabletCrossAxisCount,
- int? largeTabletCrossAxisCount,
- int? desktopScreenCrossAxisCount,
- double? largeMobileRatio,
- double? tabletRatio,
- double? largeTabletRatio,
- double? desktopRatio,
- EdgeInsetsGeometry? padding,
- ScrollPhysics? physics,
- bool? shrinkWrap,
- bool? reverse,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- 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);