StoryList constructor

const StoryList({
  1. Key? key,
  2. Widget? image,
  3. Widget? text,
  4. required IndexedWidgetBuilder itemBuilder,
  5. required int itemCount,
  6. double height = 200,
  7. double addItemWidth = 100,
  8. double itemMargin = 8,
  9. Color backgroundColor = Colors.white,
  10. Color borderColor = Colors.black12,
  11. Color iconBackgroundColor = Colors.blue,
  12. Color addItemBackgroundColor = const Color(0xffefefef),
  13. double borderRadius = 16,
  14. double iconSize = 24,
  15. Function? onPressedIcon,
})

Implementation

const StoryList({
  Key? key,
  this.image,
  this.text,
  required this.itemBuilder,
  required this.itemCount,
  this.height = 200,
  this.addItemWidth = 100,
  this.itemMargin = 8,
  this.backgroundColor = Colors.white,
  this.borderColor = Colors.black12,
  this.iconBackgroundColor = Colors.blue,
  this.addItemBackgroundColor = const Color(0xffefefef),
  this.borderRadius = 16,
  this.iconSize = 24,
  this.onPressedIcon,
}) : super(key: key);