smartpub 1.0.0
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 smartpubUse 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 smartpubWith Flutter:
$ flutter pub add smartpubThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
smartpub: ^1.0.0Alternatively, 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';