CameraAwesome class
CameraAwesome preview Widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CameraAwesome
Constructors
-
CameraAwesome({Key? key, bool testMode = false, OnPermissionsResult? onPermissionsResult, required ValueNotifier<
Size> photoSize, OnAvailableSizes? selectDefaultSize, OnCameraStarted? onCameraStarted, ValueNotifier<CameraFlashes> ? switchFlashMode, bool fitted = false, ValueNotifier<double> ? zoom, OnOrientationChanged? onOrientationChanged, required ValueNotifier<Sensors> sensor, required ValueNotifier<CaptureModes> captureMode, ValueNotifier<bool> ? enableAudio, ImagesStreamBuilder? imagesStreamBuilder, ValueNotifier<double> ? brightness, LuminosityLevelStreamBuilder? luminosityLevelStreamBuilder})
Properties
-
brightness
→ ValueNotifier<
double> ? -
set brightness correction manually range
0,1
(optionnal)final -
captureMode
→ ValueNotifier<
CaptureModes> -
current capture mode
PHOTO
orVIDEO
- Video mode TODO only iOS, Android to be donefinal -
enableAudio
→ ValueNotifier<
bool> ? -
choose to record video with audio or not - Video mode TODO only iOS, Android to be done
final
- fitted → bool
-
whether camera preview must be as big as it needs or cropped to fill with. false by default
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imagesStreamBuilder → ImagesStreamBuilder?
-
(optional) returns a Stream containing images from camera preview - TODO only Android, iOS to be done
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- luminosityLevelStreamBuilder → LuminosityLevelStreamBuilder?
-
(optional) returns a Stream containing images from camera preview - TODO only Android, iOS to be done
final
- onCameraStarted → OnCameraStarted?
-
notify client that camera started
final
- onOrientationChanged → OnOrientationChanged?
-
notify client that orientation changed
final
- onPermissionsResult → OnPermissionsResult?
-
implement this to have a callback after CameraAwesome asked for permissions
final
-
photoSize
→ ValueNotifier<
Size> -
choose your photo size from the selectDefaultSize method
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectDefaultSize → OnAvailableSizes?
-
implement this to select a default size from device available size list
final
-
sensor
→ ValueNotifier<
Sensors> -
choose between
BACK
andFRONT
final -
switchFlashMode
→ ValueNotifier<
CameraFlashes> ? -
change flash mode
final
- testMode → bool
-
true to wrap texture
final
-
zoom
→ ValueNotifier<
double> ? -
Zoom from native side. Must be between 0 and 1
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → CameraAwesomeState -
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}) → 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