ImageUtils class

Constructors

ImageUtils()

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

cropImage(String path, CropAspectRatio? aspectRatio, List<CropAspectRatioPreset>? aspectRatioPresets) Future
从相册取图片/视频 裁剪图片
getAssets(String assetName, {Key? key, double? width, double? height, bool? isCustom = false, PathFormat pathFormat = PathFormat.icons, ImageFormat format = ImageFormat.png, BoxFit fit = BoxFit.contain, Color? color, void click()?}) Widget
imageCompressAndGetFile({File? file, String? path}) Future<Object?>
图片压缩 File -> File
loadImageByProvider(ImageProvider<Object> provider, {ImageConfiguration config = ImageConfiguration.empty}) Future<Image>
ImageProvider转ui.Image 实际使用
saveUiImage(GlobalKey<State<StatefulWidget>> key) → void