CameraKitView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CameraKitView
Constructors
- CameraKitView.new({Key? key, bool hasBarcodeReader = false, ScaleTypeMode scaleType = ScaleTypeMode.fill, Function? onBarcodeRead, BarcodeFormats barcodeFormat = BarcodeFormats.FORMAT_ALL_FORMATS, CameraFlashMode previewFlashMode = CameraFlashMode.auto, CameraKitController? cameraKitController, Function? onPermissionDenied, AndroidCameraMode androidCameraMode = AndroidCameraMode.API_X, CameraSelector cameraSelector = CameraSelector.back})
Properties
- androidCameraMode → AndroidCameraMode
-
This parameter has been replaced with
useCamera2API
. This parameter accepts 3 values,API_X
,API_1
,API_2
. Default value isAPI_X
. Some feature is available in each value.API_1
features: Just taking pictureAPI_2
features: Taking picture, Scan barcode (Taking picture with flash has some issues, Auto flash in barcode scanning mode works in some phones.)API_X
features: Taking picture, Scan barcode (Auto flash in barcode scanning mode doesn't work.)final - barcodeFormat → BarcodeFormats
-
Set barcode format from available values, default value is FORMAT_ALL_FORMATS
final
- cameraKitController → CameraKitController?
-
Controller for this widget
final
- cameraSelector → CameraSelector
-
Set front and back camera
final
- hasBarcodeReader → bool
-
True means scan barcode mode and false means take picture mode
Because of performance reasons, you can't use barcode reader mode and take picture mode simultaneously.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onBarcodeRead → Function?
-
In barcodeReader mode, while camera preview detect barcodes, This method is called.
final
- onPermissionDenied → Function?
-
After android and iOS user deny run time permission, this method is called.
final
- previewFlashMode → CameraFlashMode
-
This parameter accepts 3 values.
CameraFlashMode.auto
,CameraFlashMode.on
andCameraFlashMode.off
. For changing value after initial usechangeFlashMode
method in controller.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleType → ScaleTypeMode
-
There are 2 modes
ScaleTypeMode.fill
andScaleTypeMode.fit
for this parameter. If you want camera preview fill your widget area, usefill
mode. In this mode, camera preview may be croped for filling widget area. If you want camera preview to show entire lens preview, usefit
mode. In this mode, camera preview may be shows blank areas.final - viewState ↔ _BarcodeScannerViewState
-
getter/setter pair
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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
-
dispose(
) → dynamic -
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