AppMasonry constructor
const
AppMasonry({
- Key? key,
- List<
Widget> ? children, - int? itemCount,
- IndexedWidgetBuilder? itemBuilder,
- int? columnCount,
- double maxCrossAxisExtent = 320,
- double spacing = 12,
- double runSpacing = 12,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- bool reverse = false,
- bool? primary,
- ScrollController? controller,
Creates a masonry layout.
Provide either children or both itemCount and itemBuilder.
Implementation
const AppMasonry({
super.key,
this.children,
this.itemCount,
this.itemBuilder,
this.columnCount,
this.maxCrossAxisExtent = 320,
this.spacing = 12,
this.runSpacing = 12,
this.padding = EdgeInsets.zero,
this.physics,
this.shrinkWrap = false,
this.reverse = false,
this.primary,
this.controller,
}) : assert(
children != null || (itemCount != null && itemBuilder != null),
'Either children or (itemCount and itemBuilder) must be provided.',
);