flutter_alice
3.0.0, released 3 weeks ago by freetalk.io.vn
HTTP inspector tool to capture, store, and view requests and responses.
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.
- chuck_interceptor
An HTTP inspection and debugging tool for Flutter apps.
80Compare - dio_request_inspector
A HTTP inspector for Dio, which can intercept and log HTTP requests and responses.
50Compare - api_studio
In-app network inspector for Dio, http, and custom requests with redaction, edit & replay, and exports.
70Compare - alice_lightweight
A lightweight HTTP inspector for Flutter to view network requests and responses.
77Compare
Works with
Packages commonly used together with flutter_alice: ones it builds on, ones built on it, and its own family.
- rxdartflutter_alice depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- dioflutter_alice depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- share_plusflutter_alice depends on itShare text, files, or URIs via native share dialogs on mobile, web, and desktop.