StoryList constructor

const StoryList(
  1. {Key key,
  2. Widget image,
  3. Widget text,
  4. IndexedWidgetBuilder itemBuilder,
  5. int itemCount = 0,
  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(4293914607),
  13. double borderRadius = 16,
  14. double iconSize = 24,
  15. Function onPressedIcon}
)
  • image is the image at CreateStory item.
  • text is the text at CreateStory item.
  • itemBuilder builds list items.
  • itemCount is required for list.
  • height is required for list.
  • addItemWidth is the width of CreateStory item.
  • itemMargin is the margin between of list items.
  • backgroundColor is the list.
  • borderColor is the color of the rounded border of each item.
  • iconBackgroundColor is the background of circle button in CreateStory item.
  • addItemBackgroundColor is the background of CreateStory item.
  • borderRadius is the radius of the rounded border of each item.
  • iconSize is the size of circle button in CreateStory item.
  • onPressedIcon is the action when clicked on circle button in CreateStory item.

Implementation

const StoryList({
  Key key,
  this.image,
  this.text,
  this.itemBuilder,
  this.itemCount = 0,
  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);