ImageCollage constructor
const
ImageCollage({
- Key? key,
- required List<
Img> images, - dynamic onClick()?,
- double widthSize = 0,
- String noImageText = "Unable to load",
- Color showMoreBackgroundColor = Colors.black,
- double showMoreBackgroundOpacity = 0.5,
- TextStyle noImageTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600, fontSize: 26),
- String showMore = "",
- TextStyle showMoreTextStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.w600, fontSize: 36),
- Color noImageBackgroundColor = Colors.white,
- EdgeInsets margin = const EdgeInsets.all(0),
Implementation
const ImageCollage({
Key? key,
required this.images,
this.onClick,
this.widthSize = 0,
this.noImageText = "Unable to load",
this.showMoreBackgroundColor = Colors.black,
this.showMoreBackgroundOpacity = 0.5,
this.noImageTextStyle = const TextStyle(
color: Colors.black, fontWeight: FontWeight.w600, fontSize: 26),
this.showMore = "",
this.showMoreTextStyle = const TextStyle(
color: Colors.white, fontWeight: FontWeight.w600, fontSize: 36),
this.noImageBackgroundColor = Colors.white,
this.margin = const EdgeInsets.all(0),
}) : assert(showMoreBackgroundOpacity <= 1),
super(key: key);