What is AnyInspect?

AnyInspect is a tool for debugging your Flutter application, written in Dart/Flatter. Currently you can use AnyInspect to check outgoing network requests in your application or to view SharedPreferences data, and in the future you’ll even be able to view data for modifying your application’s database.

download

The AnyInspect desktop can be downloaded from the release page. Also check the web site for other installation methods.

Quick start

After downloading and installing the AnyInspect desktop, integrate AnyInspect and its companion plug-ins into your project and rerun your application.

You can also install the integration sample directly to see the effect: anyinspect_integrate_example

The installation

Add this to the project’s pubspec.yaml file:

dependencies:
  anyinspect: ^ 0.1.0 from
  # Supported plug-ins, please add according to your needs.
  anyinspect_plugin_network: ^ 0.1.0 from
  anyinspect_plugin_shared_preferences: ^ 0.1.0 from
Copy the code

usage

import 'package:anyinspect/anyinspect.dart';
import 'package:anyinspect_plugin_network/anyinspect_plugin_network.dart';
import 'package:anyinspect_plugin_shared_preferences/anyinspect_plugin_shared_preferences.dart';

Future<void> main(List<String> args) async {
  AnyInspect anyInspect = AnyInspect.instance;
  anyInspect.addPlugin(AnyInspectPluginNetwork());
  anyInspect.addPlugin(AnyInspectPluginSharedPreferences());
  anyInspect.start();
  
  // ...
}
Copy the code

Display auxiliary ball

The auxiliary ball can display the connection status with the desktop and can be manually reconnected after disconnection.

import 'package:anyinspect/anyinspect.dart';
import 'package:flutter/material.dart';

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

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  void initState() {
    super.initState();
    // Display support balls on your home page.
    AnyInspect.instance.assistiveBall.show(context);
  }

  @override
  Widget build(BuildContext context) {
    // ...}}Copy the code

The plug-in

These are the plug-ins available.

Plugin Pub
anyinspect_plugin_network
anyinspect_plugin_shared_preferences

Discussion groups

Please join the discussion group and share your suggestions and ideas with me.

  • Wechat discussion group, please add my wechat lijy91, and note AnyInspect
  • QQ discussion group

A link to the

  • Github.com/anyinspect/…
  • Github.com/anyinspect/…
  • Github.com/anyinspect/…