flutter_assets_compresser 0.0.6
flutter_assets_compresser: ^0.0.6 copied to clipboard
A command-line Dart script to recursively scan a directory for JPG and PNG image files, display them in a tree structure, and then resize and compress them to a specified output directory.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate flutter_assets_compresser
Use it
The package has the following executables:
$ flutter_assets_compresser
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_assets_compresser
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_assets_compresser: ^0.0.6
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_assets_compresser/flutter_assets_compresser.dart';