image_picker_flutter 1.4.4

Flutter Android iOS

A Flutter plugin for iOS and Android for picking images from the image library.

image_picker_flutter pub package #

功能介绍 #

  • [x] 该插件目前支持IOS(8-13)、Android(16-29)
  • [x] 支持单选、多选
  • [x] 提供拍照、视频录制功能
  • [x] 支持多种图片格式PNG、JPG、GIF等,Flutter不支持的图片格式通过IOS、Android原生方法提供支持
  • [x] 支持多种视频格式,视频预览图通过IOS、Android原生方法提供支持
  • [x] 所用资源都提供File的绝对路径
  • [ ] 不支持原图预览
  • [ ] 不支持视频播放
  • [ ] 不支持IOS、Android动态权限、需要使用之前自行权限获取,建议使用permission_handler
  • [ ] ...

Demo动图(有那么点不清晰) #

image

使用说明 #

Android 必须添加Kotlin依赖 #

Ios 必须是Swift创建的项目 #

dependencies in flutter #


dependencies:
  image_picker_flutter: ^1.4.4
  

iOS 权限 #


<key>NSPhotoLibraryUsageDescription</key>
<string>使用图片</string>
<key>NSCameraUsageDescription</key>
<string>照相</string>
<key>NSMicrophoneUsageDescription</key>
<string>录音</string>

Android 权限 #


<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />

Demo 应用 #

Android APP #

IOS APP 因发布原因暂不提供、可以下载代码编译安装 #

API 介绍 #

  • ImagePicker
    • (单选)singlePicker
    • (多选)mulPicker
    • (拍照)takePicture
    • (视频录制)takeVideo

序言 #

- Flutter越做越强大!!!
- image_picker_flutter功能越来越完善!!!
- 开源加油!!!
3
likes
100
pub points
67%
popularity

A Flutter plugin for iOS and Android for picking images from the image library.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

673636090@qq.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on image_picker_flutter