FotoFlex constructor
const
FotoFlex({})
FotoFlex is a StatefulWidget that displays a horizontally scrollable list of images. It provides functionality to add new images, delete existing ones, and display a placeholder when there are no images. This widget is highly customizable with parameters for sizing, border color, and various handler functions for user interactions.
Parameters:
width
: The width of the entire widget.height
: The height of the entire widget.handleDelete
: Function to call when an image needs to be deleted. It takes the index of the image as a parameter.handleAddMoreImages
: Function to call when the user wants to add more images.handlePlaceholder
: Function to call when the placeholder is interacted with.borderColor
: Color of the border of the image and add more images icon.listImages
: A list of URLs representing the images to be displayed.
Usage: This widget can be used in any application that requires dynamic image display with interactive add and delete capabilities. Suitable for image galleries, photo selection interfaces, etc.
Implementation
const FotoFlex(
{super.key,
required this.handleAddMoreImages,
required this.handleDelete,
required this.handlePlaceholder,
required this.height,
required this.borderColor,
required this.listImages,
this.placeholderStyle,
this.placeholderText,
required this.width});