camera_extended_android 0.6.28 copy "camera_extended_android: ^0.6.28" to clipboard
camera_extended_android: ^0.6.28 copied to clipboard

PlatformAndroid

Android implementation of camera_extended plugin with native aspect ratio support (16:9, 4:3, 1:1).

camera_extended_android #

Android implementation of camera_extended with native aspect ratio support.

Built with the CameraX library.

Features #

This package extends the original camera_android_camerax with:

  • Native Aspect Ratio Selection - Configure aspect ratio at CameraX level
  • Native 1:1 Square Support - Uses native square formats (1088x1088, 720x720)
  • Automatic Fallback - Falls back to 4:3 when requested ratio not available

Aspect Ratio Support #

Ratio Support Resolution Examples
16:9 Native 1920x1080, 1280x720
4:3 Native 1440x1080, 640x480
1:1 Native 1088x1088, 720x720

Usage #

This package is automatically included when you use camera_extended.

dependencies:
  camera_extended: ^0.11.3

How It Works #

The plugin uses CameraX's ResolutionSelector with AspectRatioStrategy:

// For 1:1, requests native square format
ResolutionSelector(
  resolutionStrategy: ResolutionStrategy(
    boundSize: Size(1088, 1088),
    fallbackRule: CLOSEST_HIGHER_THEN_LOWER
  ),
  aspectRatioStrategy: AspectRatioStrategy(
    preferredAspectRatio: RATIO_4_3, // fallback
    fallbackRule: AUTO
  )
)

Permissions #

Add to AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />

Based On #

Fork of camera_android_camerax version 0.6.26+2.

0
likes
135
points
96
downloads

Publisher

unverified uploader

Weekly Downloads

Android implementation of camera_extended plugin with native aspect ratio support (16:9, 4:3, 1:1).

Repository (GitHub)
View/report issues
Contributing

Topics

#camera

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

async, camera_extended_platform_interface, flutter, meta, stream_transform

More

Packages that depend on camera_extended_android

Packages that implement camera_extended_android