FlutterImageStack.providers constructor
FlutterImageStack.providers({
- Key? key,
- required List<
ImageProvider< providers,Object> > - double? itemRadius = 25,
- int? itemCount = 3,
- required int totalCount,
- double? itemBorderWidth = 2,
- Color itemBorderColor = Colors.grey,
- bool showTotalCount = true,
- TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600),
- Color backgroundColor = Colors.white,
Creates an flutter image stack by passing list of ImageProvider
.
The providers and totalCount parameters are required.
Implementation
FlutterImageStack.providers({
Key? key,
required this.providers,
this.itemRadius = 25,
this.itemCount = 3,
required this.totalCount,
this.itemBorderWidth = 2,
Color this.itemBorderColor = Colors.grey,
this.showTotalCount = true,
this.extraCountTextStyle = const TextStyle(
color: Colors.black,
fontWeight: FontWeight.w600,
),
this.backgroundColor = Colors.white,
}) : imageList = [],
children = [],
imageSource = null,
super(key: key);