smartpub 1.0.0 copy "smartpub: ^1.0.0" to clipboard
smartpub: ^1.0.0 copied to clipboard

The smart way to manage Flutter dependencies. A powerful Flutter dependency analyzer that cleans and organizes your pubspec.yaml by detecting unused, misplaced, and duplicate dependencies.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate smartpub

Use it

The package has the following executables:

$ smartpub

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add smartpub

With Flutter:

 $ flutter pub add smartpub

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

dependencies:
  smartpub: ^1.0.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:smartpub/analyzer.dart';
import 'package:smartpub/apply_service.dart';
import 'package:smartpub/backup_service.dart';
import 'package:smartpub/cli_output.dart';
import 'package:smartpub/config.dart';
import 'package:smartpub/interactive_service.dart';
import 'package:smartpub/models/dependency_info.dart';
import 'package:smartpub/pubspec_manager.dart';
import 'package:smartpub/update_checker.dart';
2
likes
140
points
263
downloads

Publisher

unverified uploader

Weekly Downloads

The smart way to manage Flutter dependencies. A powerful Flutter dependency analyzer that cleans and organizes your pubspec.yaml by detecting unused, misplaced, and duplicate dependencies.

Repository (GitHub)
View/report issues

Topics

#dependencies #pubspec #analyzer #cli #developer-tools

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

ansicolor, args, http, path, yaml

More

Packages that depend on smartpub