Flutter WeChat Camera Picker

pub package pub package GitHub stars GitHub forks Build status CodeFactor GitHub license FlutterCandies

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.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Alex Li

💻 🎨 📖 💡 🤔 🚧 💬 👀

Caijinglong

💡 🤔

This project follows the all-contributors specification. Contributions of any kind welcome!

Category 🗂

Features ✨

  • x 💚 99% simillar to WeChat style.
  • x 📷 Picture taking support
  • x 🎥 Video recording support
    • x ⏱ Duration limitation support

Screenshots 📸

Preparing for use 🍭

Reference: wechat_assets_picker#preparing-for-use

Usage 📖

NameTypeDescriptionDefault Value
isAllowRecordingboolWhether the picker can record video.false
maximumRecordingDurationDurationThe maximum duration of the video recording process.const Duration(seconds: 15)
themeThemeDataTheme data for the picker.CameraPicker.themeData(C.themeColor)
textDelegateCameraPickerTextDelegateText delegate that controls text in widgets.DefaultCameraPickerTextDelegate

Simple usage

final AssetEntity entity = await CameraPicker.pickFromCamera(context);

After called and the picker displayed, plus isAllowRecording is true, tap the shooting button to take a picture, long press the shooting button to record a video.

Libraries

wechat_camera_picker