Flutter WeChat Camera Picker
Language: English | 中文简体
A camera picker which is an extension for wechat_assets_picker. Based on
camera for camera functions and
photo_manager for asset implementation.
Thanks goes to these wonderful people (emoji key):
💻 🎨 📖 💡 🤔 🚧 💬 👀
This project follows the all-contributors specification. Contributions of any kind welcome!
- Flutter WeChat Camera Picker
x🔐 Non-nullable by default
x💚 99% similar to WeChat style
x📷 Picture taking support
x☀️ Exposure adjust support
x🔍️ Scale with pinch support
x🎥 Video recording support
x⏱ Duration limitation support
x🔍 Scale when recording support
x🖾 Foreground custom widget builder support
Preparing for use 🍭
|enableRecording||Whether the picker can record video.|
|onlyEnableRecording||Whether the picker can only record video. Only available when |
|enableAudio||Whether Whether the picker should record audio. Only available with recording.|
|enableSetExposure||Whether users can set the exposure point by tapping.|
|enableExposureControlOnPoint||Whether users can adjust exposure according to the set point.|
|enablePinchToZoom||Whether users can zoom the camera by pinch.|
|enablePullToZoomInRecord||Whether users can zoom by pulling up when recording video.|
|shouldDeletePreviewFile||Whether the preview file will be delete when pop.|
|shouldLockPortrait||Whether the orientation should be set to portrait|
|maximumRecordingDuration||The maximum duration of the video recording process.|
|theme||Theme data for the picker.|
|textDelegate||Text delegate that controls text in widgets.|
|resolutionPreset||Present resolution for the camera.|
|cameraQuarterTurns||The number of clockwise quarter turns the camera view should be rotated.|
|imageFormatGroup||Describes the output of the raw image format.|
|foregroundBuilder||The foreground widget builder which will cover the whole camera preview.||null|
|onEntitySaving||The callback type define for saving entity in the viewer.||null|
final AssetEntity? entity = await CameraPicker.pickFromCamera(context);
Frequent asked question 💭
Why there are over-scaled issue when
shouldLockPortrait set to false?
Currently the rotate synchronization is not supported.
DeviceOrientation from the
CameraValue is different from the one
comes from flutter when the user is rotating devices.
The preview widget is synchronized when both orientation is the same.