ImageStack constructor

ImageStack({
  1. Key? key,
  2. required List<String> imageList,
  3. double? imageRadius = 25,
  4. int? imageCount = 3,
  5. required int totalCount,
  6. double? imageBorderWidth = 2,
  7. Color? imageBorderColor = Colors.grey,
  8. ImageSource? imageSource = ImageSource.Network,
  9. bool showTotalCount = true,
  10. TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600),
  11. Color? extraCountBorderColor,
  12. Color backgroundColor = Colors.white,
})

Creates a image stack widget.

The imageList and totalCount parameters are required.

Implementation

ImageStack({
  Key? key,
  required this.imageList,
  this.imageRadius = 25,
  this.imageCount = 3,
  required this.totalCount,
  this.imageBorderWidth = 2,
  this.imageBorderColor = Colors.grey,
  this.imageSource = ImageSource.Network,
  this.showTotalCount = true,
  this.extraCountTextStyle = const TextStyle(
    color: Colors.black,
    fontWeight: FontWeight.w600,
  ),
  this.extraCountBorderColor,
  this.backgroundColor = Colors.white,
})  : children = [],
      providers = [],
      widgetBorderColor = null,
      widgetBorderWidth = null,
      widgetCount = null,
      widgetRadius = null,
      super(key: key);