wechat_camera_picker_plus 1.0.3
A camera picker for Flutter projects based on WeChat's UI, which is also a separate runnable extension to the wechat_assets_picker_plus.
Flutter WeChat Camera Picker
A camera picker based on WeChat's UI which is a separate runnable extension to
wechat_assets_picker_plus.
The package based on camera for camera functions
and photo_manager for asset implementation.
📷 Screenshots
![]() | ![]() | ![]() | ![]() | ![]() |
|---|
Features ✨
- ♻️ Fully implementable with
States override - 💚 99% similar to WeChat style
- 📷 Picture taking support
- 🎥 Video recording support
- ⏱ Duration limitation support
- 🔍 Scale when recording support
- ☀️ Exposure adjust support
- 🔍️ Scale with pinch support
- 💱 i18n support
- ⏪ RTL language support
- 🎏 Fully customizable theme
- 🖾 Foreground custom widget builder support
- 🕹️ Intercept saving with custom process
📦 Installation
Add the package to your pubspec.yaml:
dependencies:
wechat_camera_picker_plus: ^latest_version
dependencies:
flutter pub get
Setup
Android 13 (API 33) permissions
If you don't need to take photos or videos, consider removing relevant permission in your apps, more specifically:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.your.app">
<!-- Add this if you need to take photos. -->
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<!-- Add this if you need to take videos. -->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
</manifest>
🚀 Usage
Import the package:
import 'package:wechat_camera_picker_plus/wechat_camera_picker_plus.dart';
Usage 📖
Record Video:
final entity = await CameraPicker.pickFromCamera(
Get.context!,
pickerConfig: CameraPickerConfig(
enableRecording: true,
onlyEnableRecording: true,
resolutionPreset: ResolutionPreset.high,
maximumRecordingDuration: const Duration(seconds: 60),
minimumRecordingDuration: const Duration(seconds: 7),
enableTapRecording: true,
permissionRequestOption: PermissionRequestOption(
androidPermission:
AndroidPermission(type: RequestType.all, mediaLocation: true),
),
textDelegate: EnglishCameraPickerTextDelegate(),
onMinimumRecordDurationNotMet: () {
'Minimum recording duration is 7 seconds'.errorToast();
},
),
);
final file = await entity?.file;
Take Picture:
final entity = await CameraPicker.pickFromCamera(
Get.context!,
pickerConfig: CameraPickerConfig(
enableRecording: false,
resolutionPreset: ResolutionPreset.high,
permissionRequestOption: PermissionRequestOption(
androidPermission:
AndroidPermission(type: RequestType.all, mediaLocation: true),
),
textDelegate: EnglishCameraPickerTextDelegate(),
),
);
final file = await entity?.file;
💭 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: https://github.com/flutter/flutter/issues/89216 . Other than that, please submit issues to describe your question.
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributors ✨
Thank goes to these wonderful people (emoji key):
Alex Li 💻 🎨 📖 💡 🤔 🚧 💬 👀 | Caijinglong 💡 🤔 | Lael 📖 | mjl0602 💻 🤔 | AliasWang 💻 🤔 | leftcoding 🐛 | Luong The Vinh 💻 |
luomo-pro ️️️️♿️ 🐛 | LeonardoZhu 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
🌐 Author
Made with ❤️ by Deepak.




