ImageCaptureField class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ImageCaptureField
Constructors
- ImageCaptureField({Key? key, ImageCaptureController? controller, dynamic onImagePathChanged(String? onChanged)?, dynamic onImageBytesChanged(Uint8List? bytes)?, double? width, double? height, Widget? initialImage, double? cropAspectRatio, bool includeCropper = true, int imageQuality = 100, double borderRadiusValue = 16, double bottomRightDistance = 12, Color iconBackgroundColor = Colors.teal, IconData iconEdit = Icons.edit, IconData iconCamera = Icons.camera_alt, IconData iconGallery = Icons.photo})
Properties
- borderRadiusValue → double
-
this is the widget circular border radius value
final
- bottomRightDistance → double
-
this is the distance from bottom and right side to the camera icon of the widget
final
- controller → ImageCaptureController
-
you need to pass a controller of type ImageCaptureController type
to handle the image you picked
final
- cropAspectRatio → double?
-
this is the aspectRatio for the cropper
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
this is the height of the widget
final
- iconBackgroundColor → Color
-
this defines what color will be there background of the icons
final
- iconCamera → IconData
-
this is to change camera icon of this widget
final
- iconEdit → IconData
-
this is to change edit icon of this widget
final
- iconGallery → IconData
-
this id to change gallery icon of this widget
final
- imageQuality → int
-
this is the default image compressor of image_picker ranges from 0-100
final
- includeCropper → bool
-
depending on this includeCropper, decides this Widget includes cropper or not
final
- initialImage → Widget?
-
this is to set an initial image if not set
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onImageBytesChanged → (dynamic Function(Uint8List? bytes)?)
-
this will give you the bytesUint8List of the image when you are selecting any image
final
- onImagePathChanged → (dynamic Function(String? onChanged)?)
-
this will give you the path of the image when you are selecting any image
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
this is the height of the widget
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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}) → 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