ImagePickers class

Constructors

ImagePickers()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

openCamera({CameraMimeType cameraMimeType = CameraMimeType.photo, CropConfig? cropConfig, int compressSize = 500}) Future<Media?>
返回拍摄的图片或视频的信息 Return information of the selected picture or video
pickerPaths({GalleryMode galleryMode = GalleryMode.image, UIConfig? uiConfig, int selectCount = 1, bool showCamera = false, bool showGif = true, CropConfig? cropConfig, int compressSize = 500}) Future<List<Media>>
选择图片或视频 Choose an image or video
previewImage(String imagePath) → dynamic
预览图片 preview picture
previewImages(List<String?> imagePaths, int initIndex) → dynamic
预览多张图片 Preview multiple pictures
previewImagesByMedia(List<Media> imageMedias, int initIndex) → dynamic
预览多张图片 Preview multiple pictures
previewVideo(String videoPath, {String thumbPath = ""}) → dynamic
预览视频 Preview video
saveByteDataImageToGallery(Uint8List data) Future<String?>
保存图片字节到相册中 Save picture bytes to album
saveImageToGallery(String imageUrl) Future<String?>
保存图片到相册中 Save image to album
saveVideoToGallery(String videoUrl) Future<String?>
保存视频到相册中 Save video to album