compress_images_flutter 0.0.3+9 compress_images_flutter: ^0.0.3+9 copied to clipboard
Plugin flutter for compress images using your path in memory device, functional in Ios and Android Platforms.
Add import #
import 'package:compress_images_flutter/compress_images_flutter.dart';
Create instance of Lib #
final CompressImagesFlutter compressImagesFlutter = CompressImagesFlutter();
Call with a path your image, the quality parameter if not informed the default will be 70 #
File? compressedPhoto = await compressImagesFlutter
.compressImage(photo!.path, quality: 30);