GmoCameraPicker class

Inheritance

Constructors

GmoCameraPicker({Key? key, bool enableRecording = false, bool onlyEnableRecording = false, bool enableTapRecording = false, bool enableAudio = true, bool enableSetExposure = true, bool enableExposureControl = true, bool enablePinchToZoom = true, bool enablePullToZoomInRecord = true, bool shouldAutoPreviewVideo = false, Duration? maximumRecordingDuration = const Duration(seconds: 15), ThemeData? theme, ResolutionPreset resolutionPreset = ResolutionPreset.max, int cameraQuarterTurns = 0, TextDelegate? textDelegate})

Properties

cameraQuarterTurns int
The number of clockwise quarter turns the camera view should be rotated.
final
enableAudio bool
Whether the picker should record audio.
final
enableExposureControl bool
Whether users can adjust exposure according to the set point.
final
enablePinchToZoom bool
Whether users can zoom the camera by pinch.
final
enablePullToZoomInRecord bool
Whether users can zoom by pulling up when recording video.
final
enableRecording bool
Whether the picker can record video.
final
enableSetExposure bool
Whether users can set the exposure point by tapping.
final
enableTapRecording bool
Whether allow the record can start with single tap. /// It only works when onlyEnableRecording is true.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maximumRecordingDuration Duration?
The maximum duration of the video recording process.
final
onlyEnableRecording bool
Whether the picker can record video.
final
resolutionPreset → ResolutionPreset
Present resolution for the camera.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldAutoPreviewVideo bool
Whether the video should be played instantly in the preview.
final
theme ThemeData?
Theme data for the picker.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() GmoCameraPickerState
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

Static Methods

pickFromCamera(BuildContext context, {bool enableRecording = false, bool onlyEnableRecording = false, bool enableTapRecording = false, bool enableAudio = true, bool enableSetExposure = true, bool enableExposureControl = true, bool isAutoPreviewVideo = false, Duration maximumRecordingDuration = const Duration(seconds: 15), ThemeData? theme, int cameraQuarterTurns = 0, TextDelegate? textDelegate, ResolutionPreset resolutionPreset = ResolutionPreset.max, bool useRootNavigator = true}) Future<File?>
themeData(Color themeColor) ThemeData