Last updated:
0 purchases
flutter file compressor
Flutter File Compressor #
Flutter File Compressor is a lightweight and efficient package for compressing images and videos in Flutter applications. It provides a simple API to compress files while maintaining aspect ratios, making it ideal for applications that need to manage file sizes effectively.
Features #
Compress images and videos.
Simple and easy-to-use API.
Supports both Android and iOS platforms.
Installation #
Add flutter_file_compressor to your Flutter project by adding the following line to your pubspec.yaml under dependencies:
dependencies:
flutter_file_compressor: ^1.0.0
copied to clipboard
Usage #
await FlutterFileCompressor.compressFile(
filePath: _filePath,
quality: 70, //percent
compressionType: CompressionType.image, //CompressionType.video
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.