pubghost 1.0.7 copy "pubghost: ^1.0.7" to clipboard
pubghost: ^1.0.7 copied to clipboard

A CLI tool to find unused translations, dependencies or classes in a Flutter project.

example/example.dart

import 'package:pubghost/pubghost.dart';

/// Demonstrates basic usage of the `pubghost` package.
///
/// This example shows how to run all checks programmatically:
/// - Unused dependencies
/// - Unused classes/widgets
/// - Unused ARB intl keys
///
/// This mirrors what the CLI commands `--deps`, `--widgets`, `--intl` do.
Future<void> main() async {
  print('=== Running dependency analysis ===');
  await checkUnusedDependencies();

  print('\n=== Running widget/class analysis ===');
  await checkUnusedWidgets();

  print('\n=== Running intl key analysis ===');
  await checkUnusedIntlKeys();
}
20
likes
160
points
687
downloads

Publisher

verified publishernovadev.be

Weekly Downloads

A CLI tool to find unused translations, dependencies or classes in a Flutter project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

path, yaml

More

Packages that depend on pubghost