api_hawk 1.0.4 copy "api_hawk: ^1.0.4" to clipboard
api_hawk: ^1.0.4 copied to clipboard

A lightweight HTTP inspector for Flutter. Built-in support for Dio, http, and Chopper. Granular copy options, collapsible JSON viewer, and quick cURL export.

130/ 160
pub points
170
downloads

We analyzed this package 4 hours ago, and awarded it 130 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

98 out of 132 API elements (74.2 %) have documentation comments.

Some symbols that are missing documentation: api_hawk.CallFormatter.CallFormatter.new, api_hawk.CopyHelper.CopyHelper.new, api_hawk.CurlGenerator.CurlGenerator.new, api_hawk.HawkCallDetailScreen.HawkCallDetailScreen.new, api_hawk.HawkCallDetailScreen.call.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:api_hawk/api_hawk.dart that imports:
  • package:api_hawk/src/utils/copy_helper.dart that imports:
  • dart:io
Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 11 issues. Showing the first 2:

INFO: Dangling library doc comment.

lib/api_hawk.dart:1:1

  ╷
1 │ /// API Hawk — A beautiful, lightweight HTTP inspector for Flutter.
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/api_hawk.dart

INFO: Use 'const' with the constructor to improve performance.

lib/src/ui/tabs/error_tab.dart:64:19

   ╷
64 │ ┌                   Text(
65 │ │                     'Error',
66 │ │                     style: TextStyle(
67 │ │                       color: HawkColors.clientError,
68 │ │                       fontSize: 14,
69 │ │                       fontWeight: FontWeight.w600,
70 │ │                     ),
71 │ │                   ),
   │ └───────────────────^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/ui/tabs/error_tab.dart

Failed report section
Support up-to-date dependencies
20 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
chopper >=8.0.0 <9.0.0 8.6.0 8.6.0
dio >=5.0.0 <6.0.0 5.10.0 5.10.0
http >=1.0.0 <2.0.0 1.6.0 1.6.0
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.1 2.13.1
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
dio_web_adapter - 2.2.0 2.2.0
equatable - 2.0.8 2.0.8
http_parser - 4.1.2 4.1.2
logging - 1.3.0 1.3.0
material_color_utilities - 0.13.0 0.13.0
meta - 1.18.0 1.18.3
mime - 2.0.0 2.0.0
path - 1.9.1 1.9.1
qs_dart - 1.8.0 1.8.0
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.4.0
web - 1.1.1 1.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_CLASS - lib/src/interceptors/hawk_dio_interceptor.dart:106:5 - Undefined class 'DioException'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.13, Flutter 3.44.3, Dart 3.12.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
130
points
170
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight HTTP inspector for Flutter. Built-in support for Dio, http, and Chopper. Granular copy options, collapsible JSON viewer, and quick cURL export.

Repository (GitHub)
View/report issues

Topics

#http #inspector #dio #networking #debugging

License

MIT (license)

Dependencies

chopper, dio, flutter, http

More

Packages that depend on api_hawk