ImagePainter class

ImagePainter widget.

Inheritance
Annotations

Constructors

ImagePainter.network(String url, {required Key key, double? height, double? width, Widget? placeholderWidget, bool? scalable, List<Color>? colors, Widget? brushIcon, Widget? undoIcon, Widget? clearAllIcon, Widget? colorIcon, PaintMode? initialPaintMode, double? initialStrokeWidth, Color? initialColor, ValueChanged<PaintMode>? onPaintModeChanged, ValueChanged<Color>? onColorChanged, ValueChanged<double>? onStrokeWidthChanged, TextDelegate? textDelegate, bool? controlsAtTop, bool? isOnlySignature, Uint8List? payload, dynamic onSave(Uint8List)?, double? signature_Width, double? signature_Height, bool? readOnly})
Constructor for loading image from network url.
factory
ImagePainter.signature({required Key key, Color? signatureBgColor, double? height, double? width, List<Color>? colors, Widget? brushIcon, Widget? undoIcon, Widget? clearAllIcon, Widget? colorIcon, bool isNota = false, bool isNotaWithImage = false, ValueChanged<PaintMode>? onPaintModeChanged, ValueChanged<Color>? onColorChanged, ValueChanged<double>? onStrokeWidthChanged, TextDelegate? textDelegate, bool? controlsAtTop, Future loadMedia(dynamic)?, XMediaItem? xMedia, bool isNewNota = false, bool? isOnlySignature, Uint8List? payload, dynamic onSave(Uint8List)?, double? signature_Width, double? signature_Height, bool? readOnly})
Constructor for loading image from assetPath. Constructor for signature painting.
factory

Properties

backImage Image?
getter/setter pair
brushIcon Widget?
Icon Widget of strokeWidth.
final
clearAllIcon Widget?
Widget for clearing all actions on control bar.
final
colorIcon Widget?
Widget of Color Icon in control bar.
final
colors List<Color>?
List of colors for color selection If not provided, default colors are used.
getter/setter pair
controlsAtTop bool
Define where the controls is located. true represents top.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Height of the Widget. Image is subjected to fit within the given height.
getter/setter pair
initialColor Color?
final
initialPaintMode PaintMode?
Initial PaintMode.
final
initialStrokeWidth double?
final
isNewNota bool
getter/setter pair
isOnlySignature bool
getter/setter pair
isScalable bool?
Defines whether the widget should be scaled or not. Defaults to false.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadMedia Future Function(dynamic)?
final
myState ImagePainterState
latefinal
onColorChanged ValueChanged<Color>?
final
onPaintModeChanged ValueChanged<PaintMode>?
final
onSave ↔ dynamic Function(Uint8List)?
getter/setter pair
onStrokeWidthChanged ValueChanged<double>?
final
payload Uint8List?
getter/setter pair
placeHolder Widget?
Widget to be shown during the conversion of provided image to ui.Image.
final
readOnly bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature_Height double?
getter/setter pair
signature_Width double?
getter/setter pair
signatureBackgroundColor Color
Signature mode background color
final
textDelegate TextDelegate?
final
undoIcon Widget?
Widget for Undo last action on control bar.
final
width double?
Width of the widget. Image is subjected to fit within the given width.
getter/setter pair
xMedia XMediaItem?
getter/setter pair

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() ImagePainterState
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