BarcodeCountView class

BarcodeCount comes with a ready-to-use UI. Add BarcodeCountView to the view hierarchy. Please note that this view should be presented full screen.

Added in version 6.17.0

Inheritance

Constructors

BarcodeCountView.forContextWithMode(DataCaptureContext dataCaptureContext, BarcodeCount barcodeCount)
factory
BarcodeCountView.forContextWithModeAndStyle(DataCaptureContext dataCaptureContext, BarcodeCount barcodeCount, BarcodeCountViewStyle style)
factory
BarcodeCountView.forMapping(DataCaptureContext dataCaptureContext, BarcodeCount barcodeCount, BarcodeCountViewStyle style, BarcodeCountMappingFlowSettings mappingFlowSettings)
Constructs a new barcode count view to use with the grid mapping flow.
factory

Properties

acceptedBrush ↔ Brush?
The brush applied to accepted tracked barcodes if BarcodeCountViewListener is not implemented. Setting this brush to null hides all accepted barcodes.
getter/setter pair
barcodeNotInListActionSettings ↔ BarcodeCountNotInListActionSettings
Use this object to customize barcode not in list actions.
getter/setter pair
clearHighlightsButtonAccessibilityHint ↔ String
Use this property to access or modify the accessibility hint for the clear highlights button provided by the view.
getter/setter pair
clearHighlightsButtonAccessibilityLabel ↔ String
Use this property to access or modify the accessibility label for the clear highlights button provided by the view.
getter/setter pair
clearHighlightsButtonContentDescription ↔ String
Use this property to access or modify the content description of the “clear highlights” button provided by the view.
getter/setter pair
clearHighlightsButtonText ↔ String
Use this property to access or modify the text of the clear button label provided by the view.
getter/setter pair
exitButtonAccessibilityHint ↔ String
Use this property to access or modify the accessibility hint for the exit button provided by the view.
getter/setter pair
exitButtonAccessibilityLabel ↔ String
Use this property to access or modify the accessibility label for the exit button provided by the view.
getter/setter pair
exitButtonContentDescription ↔ String
Use this property to access or modify the content description of the exit button provided by the view.
getter/setter pair
exitButtonText ↔ String
Use this property to access or modify the text of the exit button label provided by the view.
getter/setter pair
filterSettings ↔ BarcodeFilterHighlightSettings?
Use this property to access or modify the current view settings for barcode filtering.
getter/setter pair
floatingShutterButtonAccessibilityHint ↔ String
Use this property to access or modify the accessibility hint for the floating shutter button provided by the view.
getter/setter pair
floatingShutterButtonAccessibilityLabel ↔ String
Use this property to access or modify the accessibility label for the floating shutter button provided by the view.
getter/setter pair
floatingShutterButtonContentDescription ↔ String
Use this property to access or modify the content description for the floating shutter button provided by the view.
getter/setter pair
hardwareTriggerEnabled ↔ bool
Enables the BarcodeCountView to react to clicks of the volume button.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
listButtonAccessibilityHint ↔ String
Use this property to access or modify the accessibility hint for the list button provided by the view.
getter/setter pair
listButtonAccessibilityLabel ↔ String
Use this property to access or modify the accessibility label for the list button provided by the view.
getter/setter pair
listButtonContentDescription ↔ String
Use this property to access or modify the content description of the list button provided by the view.
getter/setter pair
listener ↔ BarcodeCountViewListener?
The listener which is called whenever a new TrackedBarcode is newly tracked or newly recognized.
getter/setter pair
logoAnchor ↔ Anchor
The anchor point used to position the Scandit logo.
getter/setter pair
logoStyle ↔ LogoStyle
The style of the logo, either the extended “Scanning By Scandit” or the minimal “Scandit”.
getter/setter pair
notInListBrush ↔ Brush?
The brush applied to recognized tracked barcodes that are not part of the target BarcodeCountCaptureList, and only if BarcodeCountViewListener is not implemented. When BarcodeCountCaptureList is not set, this method will never be called. Setting this brush to null hides all tracked barcodes.
getter/setter pair
recognizedBrush ↔ Brush?
The brush applied to recognized tracked barcodes if BarcodeCountViewListener is not implemented. When setting a BarcodeCountCaptureList to the mode, this brush will be used for recognized barcodes that are part of the target list. Setting this brush to null hides all tracked barcodes.
getter/setter pair
rejectedBrush ↔ Brush?
The brush applied to rejected tracked barcodes if BarcodeCountViewListener is not implemented. Setting this brush to null hides all rejected barcodes.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shouldDisableModeOnExitButtonTapped ↔ bool
When set to true, the mode will disable automatically when the default exit button is tapped.
getter/setter pair
shouldShowClearHighlightsButton ↔ bool
When set to true, a button will be shown above the default shutter button. This button clears all currently shown barcodes highlights.
getter/setter pair
shouldShowExitButton ↔ bool
When set to true, an exit button will be shown in the lower right hand corner of the screen. The behavior for this button is left entirely to the developer, and does nothing by default. When clicked, this button triggers a call to BarcodeCountViewUiListener.didTapExitButton().
getter/setter pair
shouldShowFloatingShutterButton ↔ bool
When set to true, a floating shutter button will be visible on screen. This button can be dragged to any position and, when tapped, will trigger the processing of the current video feed.
getter/setter pair
shouldShowHints ↔ bool
When set to true, this view will show some messages about currently scanned barcodes.
getter/setter pair
shouldShowListButton ↔ bool
When set to true, a list button will be shown to the user in the lower left hand corner of the screen. When tapped, this button will freeze the mode. This button triggers a call to BarcodeCountViewUiListener.didTapListButton().
getter/setter pair
shouldShowListProgressBar ↔ bool
When set to true, a progress bar will be shown to the user when a capture list has been set using BarcodeCount.setBarcodeCountCaptureList, indicating how many of the barcodes in the list have been scanned.
getter/setter pair
shouldShowScanAreaGuides ↔ bool
When set to true, this view will visualize the active scan area used for BarcodeCount. This is useful to check margins (DataCaptureView.scanAreaMargins) defined on the DataCaptureView are set correctly. This property is meant for debugging during development and is not intended for use in production.
getter/setter pair
shouldShowShutterButton ↔ bool
When set to true, a shutter button will be shown to the user centered in the bottom of the screen. This button triggers the processing of the current video feed. The same functionality can be triggered by calling BarcodeCount.startScanningPhase.
getter/setter pair
shouldShowSingleScanButton ↔ bool
When set to true, a button will be shown to the user in the lower left corner of the preview. The behavior for this button is left entirely to the developer, and does nothing by default. When clicked, this button triggers a call to BarcodeCountViewUiListener.didTapSingleScanButton().
getter/setter pair
shouldShowStatusIconsOnScan ↔ bool
When enabled, status icons will be loaded immediately after barcodes are scanned, without requiring manual activation of status mode.
getter/setter pair
shouldShowStatusModeButton ↔ bool
When set to true, a button will be shown to the user in the lower right corner of the preview. This button toggles “status mode”, in which the normal barcode highlights will be replaced by status indicators for each barcode.
getter/setter pair
shouldShowToolbar ↔ bool
When set to true, a collapsable toolbar will be visible at the top of the preview. This toolbar contains a set of convenience buttons for easy preference setting during scanning.
getter/setter pair
shouldShowTorchControl ↔ bool
Indicates whether the torch control button should be shown to the user.
getter/setter pair
shouldShowUserGuidanceView ↔ bool
When set to true, user guidance and the loading view will be shown to the user. The user guidance prompts the user to scan, and to move closer or further away from the target barcodes in order to scan them properly.
getter/setter pair
shutterButtonAccessibilityHint ↔ String
Use this property to access or modify the accessibility hint for the shutter button provided by the view.
getter/setter pair
shutterButtonAccessibilityLabel ↔ String
Use this property to access or modify the accessibility label for the shutter button provided by the view.
getter/setter pair
shutterButtonContentDescription ↔ String
Use this property to access or modify the content description of the shutter button provided by the view.
getter/setter pair
singleScanButtonAccessibilityHint ↔ String
Use this property to access or modify the accessibility hint for the single scan button provided by the view.
getter/setter pair
singleScanButtonAccessibilityLabel ↔ String
Use this property to access or modify the accessibility label for the single scan button provided by the view.
getter/setter pair
singleScanButtonContentDescription ↔ String
Use this property to access or modify the content description of the “single scan” button provided by the view.
getter/setter pair
statusModeButtonAccessibilityHint ↔ String
Use this property to access or modify the accessibility hint for the status mode button provided by the view.
getter/setter pair
statusModeButtonAccessibilityLabel ↔ String
Use this property to access or modify the accessibility label for the single status mode button provided by the view.
getter/setter pair
statusModeButtonContentDescription ↔ String
Gets or sets the content description for the status mode button provided by the view.
getter/setter pair
style → BarcodeCountViewStyle
The view style. Defaults to BarcodeCountViewStyle.dot.
no setter
tapToUncountEnabled ↔ bool
Enables this feature to be able to deselect items by tapping on the highlights.
getter/setter pair
textForBarcodesNotInListDetectedHint ↔ String
Use this property to access or modify the text of the hint displayed when a barcode not in list is scanned.
getter/setter pair
textForClusteringGestureHint ↔ String
Use this property to access or modify the text of the hint that suggests the user to use gestures to form clusters. Shown only when BarcodeCountSettings.clusteringMode is ClusteringMode.manual or ClusteringMode.autoWithManualCorrection.
getter/setter pair
textForMoveCloserAndRescanHint ↔ String
Use this property to access or modify the text of the hint displayed when camera should be moved closer to rescan.
getter/setter pair
textForMoveFurtherAndRescanHint ↔ String
Use this property to access or modify the text of the hint displayed when camera should be further away to rescan.
getter/setter pair
textForScanningHint ↔ String
Use this property to access or modify the text of the hint displayed while scanning is in progress.
getter/setter pair
textForScreenCleanedUpHint ↔ String
Use this property to access or modify the text of the hint displayed when screen is cleaned.
getter/setter pair
textForTapShutterToScanHint ↔ String
Use this property to access or modify the text of the hint which suggests to tap the shutter button.
getter/setter pair
textForTapToUncountHint ↔ String
Text of the hint displayed when the user deselects an item.
getter/setter pair
torchControlPosition ↔ Anchor
Updates the position of the torch control button.
getter/setter pair
uiListener ↔ BarcodeCountViewUiListener?
The listener which is called whenever the exit or list button of the view did receive a tap.
getter/setter pair

Methods

clearHighlights() → Future<void>
Clear all currently shown barcodes highlights. This only affects screen rendering, and all detected barcodes will still be available in the BarcodeCountSession.
createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<StatefulWidget>
Implemented from StatefulWidget. Called by the Flutter framework.
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
enableHardwareTrigger(int? hardwareTriggerKeyCode) → Future<void>
Added in version 8.3.0
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBrushForAcceptedBarcode(TrackedBarcode trackedBarcode, Brush? brush) → Future<void>
Sets a Brush to be used for a particular accepted TrackedBarcode. This will override any other applicable brush for this particular barcode.
setBrushForRecognizedBarcode(TrackedBarcode trackedBarcode, Brush? brush) → Future<void>
Sets a Brush to be used for a particular recognized TrackedBarcode. This will override any other applicable brush for this particular barcode.
setBrushForRecognizedBarcodeNotInList(TrackedBarcode trackedBarcode, Brush? brush) → Future<void>
Sets a Brush to be used for a particular recognized TrackedBarcode that doesn’t belong to the capture list. This will only be applicable when using a capture list, and will override any other applicable brush for this particular barcode.
setBrushForRejectedBarcode(TrackedBarcode trackedBarcode, Brush? brush) → Future<void>
Sets a Brush to be used for a particular rejected TrackedBarcode. This will override any other applicable brush for this particular barcode.
setIconForAcceptedBarcode(TrackedBarcode trackedBarcode, BarcodeCountIcon? icon) → Future<void>
Sets a BarcodeCountIcon to be used for a particular accepted TrackedBarcode. This will override any other applicable icon for this particular barcode.
setIconForRecognizedBarcode(TrackedBarcode trackedBarcode, BarcodeCountIcon? icon) → Future<void>
Sets a BarcodeCountIcon to be used for a particular recognized TrackedBarcode. This will override any other applicable icon for this particular barcode.
setIconForRecognizedBarcodeNotInList(TrackedBarcode trackedBarcode, BarcodeCountIcon? icon) → Future<void>
Sets a BarcodeCountIcon to be used for a particular recognized TrackedBarcode that doesn’t belong to the capture list. This will only be applicable when using a capture list, and will override any other applicable icon for this particular barcode.
setIconForRejectedBarcode(TrackedBarcode trackedBarcode, BarcodeCountIcon? icon) → Future<void>
Sets a BarcodeCountIcon to be used for a particular rejected TrackedBarcode. This will override any other applicable icon for this particular barcode.
setStatusProvider(BarcodeCountStatusProvider provider) → Future<void>
Sets a BarcodeCountStatusProvider for this view. This provider will be queried when the “status mode” button is clicked.
setToolbarSettings(BarcodeCountToolbarSettings settings) → Future<void>
Pass an instance of BarcodeCountToolbarSettings to configure the text and accessibility options for the toolbar.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toMap() → Map<String, dynamic>
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

Static Properties

defaultAcceptedIcon → BarcodeCountIcon
Returns the default BarcodeCountIcon used for an accepted barcode. Used regardless of the view BarcodeCountView.style.
no setter
defaultNotInListBrush → Brush
Returns the default brush to use for a recognized barcode that’s not part of the target BarcodeCountCaptureList. Only used when setting the view BarcodeCountView.style to BarcodeCountViewStyle.dot.
no setter
defaultNotInListIcon → BarcodeCountIcon
Returns the default BarcodeCountIcon used for a recognized barcode that’s not part of the target BarcodeCountCaptureList. Only used when the view BarcodeCountView.style is BarcodeCountViewStyle.icon.
no setter
defaultRecognizedBrush → Brush
Returns the default brush to use for a recognized barcode. When setting a BarcodeCountCaptureList to the mode, this brush will be used for recognized barcodes that are part of the target list. Only used when setting the view BarcodeCountView.style to BarcodeCountViewStyle.dot.
no setter
defaultRecognizedIcon → BarcodeCountIcon
Returns the default BarcodeCountIcon used for a recognized barcode. When setting a BarcodeCountCaptureList to the mode, this icon will be used for recognized barcodes that are part of the target list. Only used when the view BarcodeCountView.style is BarcodeCountViewStyle.icon.
no setter
defaultRejectedIcon → BarcodeCountIcon
Returns the default BarcodeCountIcon used for a rejected barcode. Used regardless of the view BarcodeCountView.style.
no setter
hardwareTriggerSupported → bool
Returns whether the device supports listening for hardware button events. This is true for devices with api >= 28.
no setter