unzipx 0.0.1 copy "unzipx: ^0.0.1" to clipboard
unzipx: ^0.0.1 copied to clipboard

UnZipX is a lightweight Flutter package that extracts ZIP files from the assets folder and saves them to the app's support directory. It simplifies asset extraction with a single

example/main.dart

import 'package:flutter/material.dart';
import 'package:unzipx/unzipx.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('UnZipX Example')),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              try {
                String extractedPath = await UnZipX.extractZipFromAssets('assets/sample.zip');
                print("Files extracted to: $extractedPath");
              } catch (e) {
                print("Extraction failed: $e");
              }
            },
            child: Text('Extract ZIP'),
          ),
        ),
      ),
    );
  }
}
0
likes
140
points
13
downloads

Documentation

API reference

Publisher

verified publisherchipnexa.in

Weekly Downloads

UnZipX is a lightweight Flutter package that extracts ZIP files from the assets folder and saves them to the app's support directory. It simplifies asset extraction with a single

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

archive, flutter, path_provider

More

Packages that depend on unzipx