dangi_doctor 0.2.2 copy "dangi_doctor: ^0.2.2" to clipboard
dangi_doctor: ^0.2.2 copied to clipboard

Flutter app health CLI — crawls every screen, analyses widget trees, measures performance, detects bugs, and generates integration tests.

example/main.dart

// Dangi Doctor is designed to be run as a command-line tool:
//
//   dart pub global activate dangi_doctor
//   cd your_flutter_project
//   dangi_doctor
//
// It will:
//   1. Connect to the Flutter VM service of your running app
//   2. Crawl every reachable screen via uiautomator tap simulation
//   3. Analyse widget trees and detect known anti-patterns
//   4. Generate integration test scripts per screen
//   5. Open an HTML health report in your browser
//
// The library API is also available for programmatic use:

import 'package:dangi_doctor/cli.dart';

void main() {
  // DiscoveredScreen holds the analysis result for one screen.
  // The crawler produces these automatically — this shows the shape of the data:
  final screen = DiscoveredScreen(
    name: 'HomeScreen',
    widgetTree: {'type': 'Scaffold', 'children': []},
    issues: [],
    totalWidgets: 42,
    maxDepth: 8,
    navigatedVia: 'start',
  );

  print('Screen  : ${screen.name}');
  print('Widgets : ${screen.totalWidgets}');
  print('Depth   : ${screen.maxDepth}');
  print('Issues  : ${screen.issues.length}');
  print('Via     : ${screen.navigatedVia}');
}
5
likes
0
points
192
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter app health CLI — crawls every screen, analyses widget trees, measures performance, detects bugs, and generates integration tests.

Repository (GitHub)
View/report issues

Topics

#flutter #testing #cli #performance #analysis

License

unknown (license)

Dependencies

args, http, path, vm_service, yaml

More

Packages that depend on dangi_doctor