StoryList constructor
const
StoryList({
- Key? key,
- Widget? image,
- Widget? text,
- required IndexedWidgetBuilder itemBuilder,
- required int itemCount,
- double height = 200,
- double addItemWidth = 100,
- double itemMargin = 8,
- Color backgroundColor = Colors.white,
- Color borderColor = Colors.black12,
- Color iconBackgroundColor = Colors.blue,
- Color addItemBackgroundColor = const Color(0xffefefef),
- double borderRadius = 16,
- double iconSize = 24,
- 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,
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);