DDSSnapAndUpload class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DDSSnapAndUpload
Constructors
-
DDSSnapAndUpload({Key? key, required UploadSource uploadSource, 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, Widget? uploadIconWidget, Color? uploadIconColor = Colors.grey, double? uploadIconSize = 40, String? uploadText = "Add image", Color? textColor = Colors.grey, TextStyle? uploadTextStyle, Color? dottedBorderColor = const Color(0xFFCDCDCD), IconData? uploadedImageTopRightIcon, Color? uploadedImageTopRightIconColor, dynamic onImageUpload(List<
ImageData> )?, dynamic onAdvancedCameraCapture(File rawImage, File? annotatedImage)?, Future<bool> onDeletePressed(ImageData imageData, int index)?, 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, ImageEditType? captureImageEditType = ImageEditType.editorWithGallery, bool? captureButtonDisable, double? captureButtonHeight, double? captureButtonWidth, String? captureButtonLabel, Widget? customCaptureButtonWidget, Widget? advancedCameraTitle, Widget? customCameraTriggerWidget, bool useCustomCameraTrigger = false, bool showImages = true, double? cameraAppBarTitleSpacing, Color? cameraLoaderColor = Colors.blue, Color? annotationSelectedColor, Color? annotationUnselectedColor, Color? annotationOptionColor, Color? annotationControlsBackgroundColor, List<BoxShadow> ? uploadButtonShadow, double? uploadBoxBorderRadius, double? imageBorderRadius, Widget? imageViewerCustomAppBar(int currentIndex, int totalImages, VoidCallback onBack)?, double? imageViewerAppBarHeight, List<ImageData> ? initialImages, UploadButtonPosition uploadButtonPosition = UploadButtonPosition.first, double gridHorizontalSpacing = 16.0, double gridVerticalSpacing = 16.0, double horizontalImageSpacing = 16.0, double? controlButtonsBottomPadding, bool disableAdvancedCamera = false, double controlButtonsTopPadding = 8.0}) -
const
Properties
- advancedCameraTitle → Widget?
-
final
- annotationControlsBackgroundColor → Color?
-
final
- annotationOptionColor → Color?
-
final
- annotationSelectedColor → Color?
-
final
- annotationUnselectedColor → Color?
-
final
- cameraAppBarTitleSpacing → double?
-
final
- cameraLoaderColor → Color?
-
final
- captureButtonDisable → bool?
-
final
- captureButtonHeight → double?
-
final
- captureButtonLabel → String?
-
final
- captureButtonWidth → double?
-
final
- captureImageEditType → ImageEditType?
-
final
- controlButtonsBottomPadding → double?
-
final
- controlButtonsTopPadding → double
-
final
- customCameraTriggerWidget → Widget?
-
final
- customCaptureButtonWidget → Widget?
-
final
- deleteButtonMargin → EdgeInsets?
-
final
- disableAdvancedCamera → bool
-
final
- displayImageWithCount → bool?
-
final
- dottedBorderColor → Color?
-
final
- gridHorizontalSpacing → double
-
final
- gridVerticalSpacing → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalImageSpacing → double
-
final
- imageBorderRadius → double?
-
final
- imageHeight → double
-
final
- imageShape → ImageContainerShape
-
final
- imageViewerAppBarHeight → double?
-
final
- imageViewerBackgroundColor → Color?
-
final
- imageViewerCustomAppBar → Widget? Function(int currentIndex, int totalImages, VoidCallback onBack)?
-
final
- imageViewerPadding → EdgeInsets?
-
final
- imageWidth → double
-
final
-
initialImages
→ List<
ImageData> ? -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxImageDisplayed → int
-
final
- maxImages → int
-
final
- maxWidth → double?
-
final
- nextIcon → Widget?
-
final
- onAdvancedCameraCapture → dynamic Function(File rawImage, File? annotatedImage)?
-
final
-
onDeletePressed
→ Future<
bool> Function(ImageData imageData, int index)? -
final
-
onImageUpload
→ dynamic Function(List<
ImageData> )? -
final
- previousIcon → Widget?
-
final
- removeOnlyRecentImage → bool?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showImages → bool
-
final
- shrinkButtonAlignment → AlignmentGeometry
-
final
- shrinkButtonBoxDecoration → BoxDecoration?
-
final
- shrinkButtonConstraints → BoxConstraints?
-
final
- shrinkButtonMargin → EdgeInsets?
-
final
- shrinkIcon → Widget?
-
final
- textColor → Color?
-
final
- uploadBoxBorderRadius → double?
-
final
- uploadButtonPosition → UploadButtonPosition
-
final
-
uploadButtonShadow
→ List<
BoxShadow> ? -
final
- uploadedImageTopRightIcon → IconData?
-
final
- uploadedImageTopRightIconColor → Color?
-
final
- uploadedImageTopRightWidget → Widget?
-
final
- uploadIcon → IconData?
-
final
- uploadIconColor → Color?
-
final
- uploadIconSize → double?
-
final
- uploadIconWidget → Widget?
-
final
- uploadImageHeight → double
-
final
- uploadImageWidth → double
-
final
- uploadSource → UploadSource
-
final
- uploadText → String?
-
final
- uploadTextStyle → TextStyle?
-
final
- useCustomCameraTrigger → bool
-
final
- viewExcessImageText → Widget?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _DDSSnapAndUploadState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited