ImageCollage constructor

const ImageCollage({
  1. Key? key,
  2. required List<Img> images,
  3. dynamic onClick(
    1. Img,
    2. List<Img>
    )?,
  4. double widthSize = 0,
  5. String noImageText = "Unable to load",
  6. Color showMoreBackgroundColor = Colors.black,
  7. double showMoreBackgroundOpacity = 0.5,
  8. TextStyle noImageTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600, fontSize: 26),
  9. String showMore = "",
  10. TextStyle showMoreTextStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.w600, fontSize: 36),
  11. Color noImageBackgroundColor = Colors.white,
  12. 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);