ImageUtil class
Constructors
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
-
addTextWatermarkToBytes(
Uint8List bytes, String text, {Color color = Colors.white, double fontSize = 18, Offset offset = const Offset(10, 10)}) → Future< Uint8List> - 给图片字节数据添加文字水印
-
captureWidget(
GlobalKey< State< key) → Future<StatefulWidget> >Uint8List> - 截取小部件的图片
-
compressImageBytes(
Uint8List bytes, {int quality = 80}) → Future< Uint8List> - 压缩图片数据
-
getImageSize(
Object image) → Future< Size> - 获取图片宽高
-
isImage(
File file) → Future< bool> - 判断文件是否为图片
-
isImageFromBytes(
Uint8List bytes) → bool - 从字节数组判断是否为图片
-
isImageUrl(
String imageUrl) → Future< bool> - 判断图片地址是否为有效的图片