DDSImageUpload constructor

const DDSImageUpload({
  1. Key? key,
  2. ImageContainerShape imageShape = ImageContainerShape.square,
  3. double imageWidth = 195.0,
  4. double imageHeight = 185.0,
  5. double uploadImageWidth = 195.0,
  6. double uploadImageHeight = 185.0,
  7. int maxImages = 5,
  8. bool? displayImageWithCount,
  9. double? maxWidth,
  10. IconData? uploadIcon = Icons.camera_alt_outlined,
  11. Color? uploadIconColor = Colors.grey,
  12. double? uploadIconSize = 40,
  13. String? uploadText = "Add image",
  14. Color? textColor = Colors.grey,
  15. IconData? uploadedImageTopRightIcon,
  16. Color? uploadedImageTopRightIconColor,
  17. dynamic onImageUpload(
    1. List<ImageData>
    )?,
  18. dynamic onDeletePressed(
    1. ImageData imageData,
    2. int index
    )?,
  19. Widget? nextIcon,
  20. Widget? previousIcon,
  21. Widget? shrinkIcon,
  22. BoxDecoration? shrinkButtonBoxDecoration,
  23. Color? imageViewerBackgroundColor,
  24. EdgeInsets? imageViewerPadding,
  25. Widget? viewExcessImageText,
  26. bool? removeOnlyRecentImage,
  27. Widget? uploadedImageTopRightWidget,
  28. BoxConstraints? shrinkButtonConstraints,
  29. EdgeInsets? shrinkButtonMargin,
  30. EdgeInsets? deleteButtonMargin,
  31. AlignmentGeometry shrinkButtonAlignment = Alignment.bottomCenter,
  32. int maxImageDisplayed = 3,
  33. 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);