ResolutionPreset enum
Common capture resolution targets for FlutterLiteCameraPlatform.setResolution.
A preset is a target, not a guarantee: every platform negotiates with the device and activates the closest supported size. Mobile camera sensors are physically landscape, so a portrait-shaped target simply selects the matching landscape sensor size. The actual negotiated size is reported by FlutterLiteCameraPlatform.getWidth, FlutterLiteCameraPlatform.getHeight, and every FlutterLiteCameraPlatform.captureFrame result.
Values
- low → const ResolutionPreset
-
320x240 (QVGA).
const ResolutionPreset(320, 240) - medium → const ResolutionPreset
-
640x480 (VGA).
const ResolutionPreset(640, 480) - high → const ResolutionPreset
-
1280x720 (HD).
const ResolutionPreset(1280, 720) - veryHigh → const ResolutionPreset
-
1920x1080 (Full HD).
const ResolutionPreset(1920, 1080) - ultraHigh → const ResolutionPreset
-
3840x2160 (4K UHD).
const ResolutionPreset(3840, 2160) - max → const ResolutionPreset
-
Effectively the largest size the device supports.
const ResolutionPreset(7680, 4320)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Target height in pixels (landscape reference).
final
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
Target width in pixels (landscape reference).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ResolutionPreset> - A constant List of the values in this enum, in order of their declaration.