DDSImageUpload constructor
const
DDSImageUpload({
- Key? key,
- ImageContainerShape imageShape = ImageContainerShape.square,
- double imageWidth = 195.0,
- double imageHeight = 185.0,
- double uploadImageWidth = 195.0,
- double uploadImageHeight = 185.0,
- int maxImages = 5,
- bool? displayImageWithCount,
- double? maxWidth,
- IconData? uploadIcon = Icons.camera_alt_outlined,
- Color? uploadIconColor = Colors.grey,
- double? uploadIconSize = 40,
- String? uploadText = "Add image",
- Color? textColor = Colors.grey,
- IconData? uploadedImageTopRightIcon,
- Color? uploadedImageTopRightIconColor,
- dynamic onImageUpload()?,
- dynamic onDeletePressed()?,
- Widget? nextIcon,
- Widget? previousIcon,
- Widget? shrinkIcon,
- BoxDecoration? shrinkButtonBoxDecoration,
- Color? imageViewerBackgroundColor,
- EdgeInsets? imageViewerPadding,
- Widget? viewExcessImageText,
- bool? removeOnlyRecentImage,
- Widget? uploadedImageTopRightWidget,
- BoxConstraints? shrinkButtonConstraints,
- EdgeInsets? shrinkButtonMargin,
- EdgeInsets? deleteButtonMargin,
- AlignmentGeometry shrinkButtonAlignment = Alignment.bottomCenter,
- int maxImageDisplayed = 3,
- bool uploadButtonFirst = true,
Implementation
const DDSImageUpload(
{Key? key,
this.imageShape = ImageContainerShape.square,
this.imageWidth = 195.0,
this.imageHeight = 185.0,
this.uploadImageWidth = 195.0,
this.uploadImageHeight = 185.0,
this.maxImages = 5,
this.displayImageWithCount,
this.maxWidth,
this.uploadIcon = Icons.camera_alt_outlined,
this.uploadIconColor = Colors.grey,
this.uploadIconSize = 40,
this.uploadText = "Add image",
this.textColor = Colors.grey,
this.uploadedImageTopRightIcon,
this.uploadedImageTopRightIconColor,
this.onImageUpload,
this.onDeletePressed,
this.nextIcon,
this.previousIcon,
this.shrinkIcon,
this.shrinkButtonBoxDecoration,
this.imageViewerBackgroundColor,
this.imageViewerPadding,
this.viewExcessImageText,
this.removeOnlyRecentImage,
this.uploadedImageTopRightWidget,
this.shrinkButtonConstraints,
this.shrinkButtonMargin,
this.deleteButtonMargin,
this.shrinkButtonAlignment = Alignment.bottomCenter,
this.maxImageDisplayed = 3,
this.uploadButtonFirst = true})
: super(key: key);