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.
- Host: GitHub
- URL: https://github.com/wisnuwiry/camera_works
- Owner: wisnuwiry
- License: mit
- Created: 2021-05-12T07:30:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-17T07:50:41.000Z (over 4 years ago)
- Last Synced: 2025-01-05T05:14:10.502Z (10 months ago)
- Topics: camera, camerax, flutter, flutter-camera
- Language: Kotlin
- Homepage:
- Size: 103 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.