DocumentScanner class

This class is the main page of the application

Inheritance

Constructors

DocumentScanner({Key? key, DocumentScannerController? controller, GeneralStyles generalStyles = const GeneralStyles(), AnimatedSwitcherTransitionBuilder? pageTransitionBuilder, CameraLensDirection initialCameraLensDirection = CameraLensDirection.back, ResolutionPreset resolutionCamera = ResolutionPreset.high, TakePhotoDocumentStyle takePhotoDocumentStyle = const TakePhotoDocumentStyle(), CropPhotoDocumentStyle cropPhotoDocumentStyle = const CropPhotoDocumentStyle(), EditPhotoDocumentStyle editPhotoDocumentStyle = const EditPhotoDocumentStyle(), required OnSave onSave})
Create a main page with properties and methods to manage the document scanner.
const

Properties

controller DocumentScannerController?
Controller to execute the different functionalities using the DocumentScannerController
final
cropPhotoDocumentStyle CropPhotoDocumentStyle
It is used to change the style of the CropPhotoDocumentPage page using the CropPhotoDocumentStyle class.
final
editPhotoDocumentStyle EditPhotoDocumentStyle
It is used to change the style of the EditDocumentPhotoPage page using the EditPhotoDocumentStyle class.
final
generalStyles GeneralStyles
generalStyles is the GeneralStyles that will be used to style the DocumentScanner widget.
final
hashCode int
The hash code for this object.
no setterinherited
initialCameraLensDirection CameraLensDirection
Camera library CameraLensDirection
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onSave → OnSave
After performing the whole process of capturing the document It will return it as Uint8List.
final
pageTransitionBuilder AnimatedSwitcherTransitionBuilder?
To change the animation performed when switching between screens by using the AnimatedSwitcherTransitionBuilder
final
resolutionCamera ResolutionPreset
Camera library ResolutionPreset
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
takePhotoDocumentStyle TakePhotoDocumentStyle
It is used to change the style of the TakePhotoDocumentPage page using the TakePhotoDocumentStyle class.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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