An open API service indexing awesome lists of open source software.

https://github.com/wisnuwiry/camera_works

A camera plugin for flutter, which use CameraX on Android, native API on iOS, supports camera capture, flash, & switch camera.
https://github.com/wisnuwiry/camera_works

camera camerax flutter flutter-camera

Last synced: 8 months ago
JSON representation

A camera plugin for flutter, which use CameraX on Android, native API on iOS, supports camera capture, flash, & switch camera.

Awesome Lists containing this project

README

          

# Camera Works

Camera Works is a simple library to handle cameras with an emphasis on stability. A camera plugin for flutter, which use CameraX on Android, native API on iOS, supports camera capture, flash, & switch camera.

I made this plugin because there are several BUGs that are still unsolved in the official camera plugin.

*Note*: For now this plugin only support in Android only. And this plugin inspired by the official [camera](https://pub.dev/packages/camera)
## Features

- [x] Switch camera front & back
- [x] Take Picture
- [x] Handle Flash

## Getting Started

Add `camera_works` as a [dependency in your pubspec.yaml file](https://flutter.dev/using-packages/).

```
dependencies:
camera_works: ^
```

### Android

Make sure you have a `miniSdkVersion` with 21 or higher in your `android/app/build.gradle` file, because the camera2 API which CameraX used only support Android 5.0 or above.

*Note*: You can run the example on a device emulator with Android 11 or higher and physical devices, CameraX doesn't work when running on emulators with Android 10 or lower. See https://developer.android.google.cn/codelabs/camerax-getting-started#5

## Issues

- Doesn't work with horizontal orientation.
- No Unit tests for now.