asset_shrink 0.1.0 copy "asset_shrink: ^0.1.0" to clipboard
asset_shrink: ^0.1.0 copied to clipboard

A zero-history, quality-gated Flutter and Dart dev-time asset compressor (PNG/JPEG) with native CLI and pure-Dart fallback.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate asset_shrink

Use it

The package has the following executables:

$ asset_shrink

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add asset_shrink

With Flutter:

 $ flutter pub add asset_shrink

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  asset_shrink: ^0.1.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:asset_shrink/asset_shrink.dart';
2
likes
160
points
150
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A zero-history, quality-gated Flutter and Dart dev-time asset compressor (PNG/JPEG) with native CLI and pure-Dart fallback.

Repository (GitHub)
View/report issues

Topics

#assets #compression #flutter #cli #images

License

MIT (license)

Dependencies

args, glob, image, path, yaml

More

Packages that depend on asset_shrink