FlutterImageStack.widgets constructor

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

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

The children and totalCount parameters are required.

Implementation

FlutterImageStack.widgets({
  Key? key,
  required this.children,
  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 = [],
      providers = [],
      imageSource = null,
      super(key: key);