ImageStack.widgets constructor
ImageStack.widgets({
- Key? key,
- required List<
Widget> children, - double? widgetRadius = 25,
- int? widgetCount = 3,
- required int totalCount,
- double? widgetBorderWidth = 2,
- Color widgetBorderColor = Colors.grey,
- bool showTotalCount = true,
- TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600),
- Color? extraCountBorderColor,
- 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);