ImageStack.widgets constructor

ImageStack.widgets({
  1. Key? key,
  2. required List<Widget> children,
  3. double? widgetRadius = 25,
  4. int? widgetCount = 3,
  5. required int totalCount,
  6. double? widgetBorderWidth = 2,
  7. Color widgetBorderColor = Colors.grey,
  8. bool showTotalCount = true,
  9. TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600),
  10. Color? extraCountBorderColor,
  11. Color backgroundColor = Colors.white,
})

Creates a image stack widget by passing list of custom widgets.

The children and totalCount parameters are required.

Implementation

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