Flutter WeChat Camera Picker
A camera picker which is an extension for
camera for camera functions and
photo_manager for asset implementation.
- ? Non-nullable by default
- ? 99% similar to WeChat style
- ? Picture taking support
- ☀️ Exposure adjust support
- ?️ Scale with pinch support
- ? Video recording support
- ⏱ Duration limitation support
- ? Scale when recording support
- ? Foreground custom widget builder support
Preparing for use ?
||Whether the picker can record video.||
||Whether the picker can only record video. Only available when
||Whether Whether the picker should record audio. Only available with recording.||
||Whether users can set the exposure point by tapping.||
||Whether users can adjust exposure according to the set point.||
||Whether users can zoom the camera by pinch.||
||Whether users can zoom by pulling up when recording video.||
||Whether the preview file will be delete when pop.||
||The maximum duration of the video recording process.||
||Theme data for the picker.||
||Text delegate that controls text in widgets.||
||Present resolution for the camera.||
||The number of clockwise quarter turns the camera view should be rotated.||
||Describes the output of the raw image format.||
||The foreground widget builder which will cover the whole camera preview.||null|
||The callback type define for saving entity in the viewer.||null|
||The error handler when any error occurred during the picking process.||null|
final AssetEntity? entity = await CameraPicker.pickFromCamera(context);
Frequently asked question ?
Why the orientation behavior is strange on iOS?
Currently, the preview is not correctly synced on the iOS.
You can find more details in this issue:
Other than that, please submit issues to describe your question.
Thank goes to these wonderful people (emoji key):
? ? ? ? ? ? ? ?
This project follows the all-contributors specification. Contributions of any kind welcome!