gits_inspector 3.2.1 copy "gits_inspector: ^3.2.1" to clipboard
gits_inspector: ^3.2.1 copied to clipboard

A simple in-app for GitsHttp inspector. Intercepts and persists all HTTP requests and responses inside your application, and provides a UI for inspecting their content.

Gits Inspector #

Gits Inspector is a simple in-app for Gits HTTP inspector. Gits Inspector intercepts and persists all HTTP requests and responses inside your application, and provides a UI for inspecting their content. It is inspired from Alice, Chuck and Chucker.

Supported #

Feature #

  • Detailed logs for each HTTP calls (HTTP Request, HTTP Response)
  • Inspector UI for viewing HTTP calls
  • Save HTTP calls to Sqflite
  • Notification on HTTP call
  • Support for top used HTTP clients in Dart
  • Shake to open inspector
  • HTTP calls search

How to Usage #

locator.registerLazySingleton(
    () => GitsInspector(
      showNotification: true, // default true
      showInspectorOnShake: true, // default true
      saveInspectorToLocal: true, // default true
      notificationIcon: '@mipmap/ic_launcher', // default '@mipmap/ic_launcher' just for android
    ),
  );
  locator.registerLazySingleton(
    () => GitsHttp(
      timeout: 30000,
      showLog: true,
      gitsInspector: locator(), // add this for activate inspector in Gits HTTP
    ),
  );

to help navigate without context to the gits inspector page it is necessary to setup the navigator state with the method setNavigatorState(Navigator.of(context)) and is recommended on start pages like SplashPage.

class SplashPage extends StatefulWidget {
  const SplashPage({Key? key}) : super(key: key);

  @override
  State<SplashPage> createState() => _SplashPageState();
}

class _SplashPageState extends State<SplashPage> {
  @override
  void initState() {
    super.initState();
    locator<GitsInspector>().setNavigatorState(Navigator.of(context)); // add this to navigate from local notification or on shake 
    ...
  }
  ...
}
3
likes
130
pub points
23%
popularity

Publisher

verified publishergits.id

A simple in-app for GitsHttp inspector. Intercepts and persists all HTTP requests and responses inside your application, and provides a UI for inspecting their content.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, flutter_local_notifications, intl, sensors_plus, share_plus, sqflite

More

Packages that depend on gits_inspector