ImageMarkerViewer class

Görsel üzerinde marker ekleme, düzenleme ve görüntüleme widget'ı

Bu widget, bir görsel üzerinde marker'lar oluşturmanıza, düzenlemenize ve görüntülemenize olanak tanır. Her marker kendi state'ini yönetir ve sadece ilgili marker değiştiğinde rebuild olur, bu sayede performans optimize edilir.

Örnek kullanım:

ImageMarkerViewer(
  image: AssetImage('assets/image.jpg'),
  enableAddMarker: true,
  onMarkerAdded: (marker) {
    print('Marker eklendi: ${marker.markerTitle}');
  },
)
Inheritance

Constructors

ImageMarkerViewer({Key? key, required ImageProvider<Object> image, bool enableAddMarker = true, dynamic onMarkerAdded(ImageMarker)?, dynamic onMarkerSelected(ImageMarker)?, String? tag, ImageMarkerController? controller})
const

Properties

controller ImageMarkerController?
Dışarıdan controller sağlamak için kullanılır
final
enableAddMarker bool
Marker eklemeyi etkinleştirir/devre dışı bırakır
final
hashCode int
The hash code for this object.
no setterinherited
image ImageProvider<Object>
Görsel provider'ı
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onMarkerAdded → dynamic Function(ImageMarker)?
Marker eklendiğinde çağrılacak callback
final
onMarkerSelected → dynamic Function(ImageMarker)?
Marker seçildiğinde çağrılacak callback
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String?
Her görsel için ayrı controller kullanmak için benzersiz bir tag
final

Methods

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

Constants

defaultColors → const List<Color>
Varsayılan renkler listesi