ImagePickerWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ImagePickerWidget
Constructors
- ImagePickerWidget({Key? key, required double diameter, dynamic initialImage, bool isEditable = false, bool shouldCrop = false, void onChange(File)?, Color? backgroundColor, Radius borderRadius = const Radius.circular(8), ImagePickerWidgetShape shape = ImagePickerWidgetShape.circle, AlignmentGeometry? iconAlignment, Widget? editIcon, BoxFit? fit, IndexedWidgetPickerBuilder? imagePickerModal, ModalOptions? modalOptions, CroppedImageOptions? croppedImageOptions, ImagePickerOptions? imagePickerOptions})
-
const
Properties
- backgroundColor → Color?
-
final
- borderRadius → Radius
-
final
- croppedImageOptions → CroppedImageOptions?
-
Image editing params
final
- diameter → double
-
The diameter of the container in which the image is contained
final
- editIcon → Widget?
-
final
- fit → BoxFit?
-
How the image should be inscribed into the box.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconAlignment → AlignmentGeometry?
-
final
- imagePickerModal → IndexedWidgetPickerBuilder?
-
final
- imagePickerOptions → ImagePickerOptions?
-
Image picker params
final
- initialImage → dynamic
-
The initial image to be displaied, can be an
ImageProvider
,File
or aexternal url (String)
final - isEditable → bool
-
Checks whether the image can be changed
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- modalOptions → ModalOptions?
-
final
- onChange → (void Function(File)?)
-
Case the image can be changed, this function will be called after the change
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ImagePickerWidgetShape
-
The shape of the widget
square or circle
final - shouldCrop → bool
-
Defines if the image can be edited
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ImagePickerWidgetState -
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}) → 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
Static Methods
-
selectSourceModal(
BuildContext context, {ModalOptions? options}) → Future< ImageSource?>