Skip to content
pubscout

flutter_alice

3.0.0, released 3 weeks ago by freetalk.io.vn

HTTP inspector tool to capture, store, and view requests and responses.

$ flutter pub add flutter_alice
Source repository

What it does

Alice is an HTTP Inspector tool that captures, stores, and displays HTTP requests and responses via a user-friendly UI. It supports multiple Dart HTTP clients including Dio, HttpClient, and the standard http package, providing search, statistics, and floating overlay features.

AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to inspect and debug HTTP network traffic during Flutter app development.
  • You want a floating overlay or UI to view request headers, bodies, and error logs inside your app.

Skip it when

  • You are running a backend-only Dart application without a Flutter UI context.
  • You do not use HTTP network requests in your application.

Strengths

  • Supports multiple HTTP clients like Dio, HttpClient, and the http package.
  • Includes a floating inspector bubble, JSON viewer, search filters, and statistics dashboard.

Weaknesses

  • Increases application size and includes debugging tooling that should be managed for production releases.
  • Requires proper navigator key or widget wrapper setup across the application.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Add dependency to pubspec.yaml, then wrap your app with AliceInspector or manually configure with a navigator key and interceptors.

import 'package:flutter_alice/alice.dart';

final alice = Alice();
final navigatorKey = GlobalKey<NavigatorState>();
final dio = Dio();

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return AliceInspector(
      debug: true,
      dios: [dio],
      navigatorKey: navigatorKey,
      child: MaterialApp(
        navigatorKey: navigatorKey,
        home: HomePage(),
      ),
    );
  }
}

Alternatives

Packages that do the same job and could replace flutter_alice.

Works with

Packages commonly used together with flutter_alice: ones it builds on, ones built on it, and its own family.