flutter_archive
6.3.2, released 2 weeks ago by kineapps.com
Create and extract ZIP archive files in Android, iOS and macOS.
Rock solid
What it does
Creates and extracts ZIP archive files using native Android, iOS, and macOS platform APIs. It supports zipping directories recursively or specific file lists, unzipping to directories, and reporting progress.
AI-written summary of version 6.3.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to create ZIP files from directories or lists of files in Flutter apps.
- You need to extract ZIP files on Android, iOS, or macOS.
- You require progress reporting or selective extraction/compression of ZIP entries.
Skip it when
- You need support for platforms other than Android, iOS, and macOS.
- You prefer a pure Dart implementation instead of native platform APIs.
Strengths
- Uses Android/iOS/macOS platform APIs for high performance and optimal memory usage.
- Runs background processing to keep the UI responsive.
- Provides progress reporting and selective file inclusion/exclusion.
Weaknesses
- Limited platform support (only Android, iOS, and macOS).
- Requires minimum platform versions (Android API 24+, iOS 13+, macOS 10.15+).
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires minimum platform versions: Android API level 24+, iOS 13+, and macOS 10.15+.
final dataDir = Directory("data_dir_path");
try {
final zipFile = File("zip_file_path");
ZipFile.createFromDirectory(
sourceDir: dataDir, zipFile: zipFile, recurseSubDirs: true);
} catch (e) {
print(e);
}Alternatives
Packages that do the same job and could replace flutter_archive.
Works with
Packages commonly used together with flutter_archive: ones it builds on, ones built on it, and its own family.