xb_image_editor_funs library
Functions
-
convertPainterToImage(
CustomPainter painter, Size size) → Future< Uint8List?> -
convertUIImageToUint8List(
Image image) → Future< Uint8List?> -
fitSize(
Size containerSize, Size imgSize, [bool fill = false]) → Size -
generateBase64ImgFromFilePath(
String imagePath) → Future< String?> -
generateBase64ImgFromUint8List(
Uint8List imageBytes) → String? -
generateUiImgFromAssetsPath(
String path) → Future< Image> - 用assets中的图片生成ui.Image
-
generateUiImgFromFilePath(
String path) → Future< Image> - 用沙盒中的图片生成ui.Image
-
generateUiImgFromNet(
String imageUrl) → Future< Image> - 用网络图片生成ui.Image
-
generateUiImgFromUint8List(
Uint8List data) → Future< Image> - 用Uint8List生成ui.Image
-
generateUint8ListFromFilePath(
String path) → Future< Uint8List?> - 用沙盒中的图片生成Uint8List
-
rotateImage(
Uint8List imageData, double angle) → Future< Uint8List> -
textSize(
String text, TextStyle style) → Size -
uint8ListToFile(
Uint8List data, String path) → File