BarcodeArInfoAnnotation class
Info annotations are tooltips that display text and icons, structured as an array of body components (BarcodeArInfoAnnotationBodyComponent). Each body component contains text and may include optional tappable icons on both the left and right sides.
In addition to the body components, info annotations can include an optional header, and footer. By default, they appear automatically when the corresponding barcode is scanned. Info annotations are available in three predefined widths, with their height dynamically adjusting to fit the content. Here are some examples:
| Body component only. | Body component and header. | Body component with attributed text and tappable icon. |
Added in version 7.1.0
- Inheritance
-
- Object
- BarcodeArAnnotation
- BarcodeArInfoAnnotation
Constructors
- BarcodeArInfoAnnotation(Barcode _barcode)
- Constructs a new instance with the given barcode.
Properties
- anchor ↔ BarcodeArInfoAnnotationAnchor
-
The annotation anchor. The default value is BarcodeArInfoAnnotationAnchor.bottom.
getter/setter pair
- annotationTrigger ↔ BarcodeArAnnotationTrigger
-
The trigger that causes the annotation to be presented. By default is BarcodeArAnnotationTrigger.highlightTapAndBarcodeScan.
getter/setter pairoverride
- backgroundColor ↔ Color
-
The background color. The default value is #CCFFFFFF.
getter/setter pair
- barcode → Barcode
-
The barcode instance for the annotation.
no setter
- barcodeId ↔ String
-
getter/setter pairinherited
-
body
↔ List<
BarcodeArInfoAnnotationBodyComponent> -
The annotation body, represented as an array of body components (BarcodeArInfoAnnotationBodyComponent). The default value is [].
getter/setter pair
- controller ↔ BarcodeArViewController?
-
getter/setter pairinherited
-
The annotation footer. The default value is null.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasTip ↔ bool
-
Whether the annotation has a tip. The default value is true.
getter/setter pair
- header ↔ BarcodeArInfoAnnotationHeader?
-
The annotation header. The default value is null.
getter/setter pair
- isEntireAnnotationTappable ↔ bool
-
If false, each individual element within the annotation (header, footer, icons in body components) is tappable. If true, the entire annotation is tappable.
getter/setter pair
- listener ↔ BarcodeArInfoAnnotationListener?
-
An object that receives notifications for UI-related events.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width ↔ BarcodeArInfoAnnotationWidthPreset
-
The annotation width. The default value is BarcodeArInfoAnnotationWidthPreset.small.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited