alice 0.0.6

  • Example
  • Installing
  • Versions
  • 90

Alice #

pub package pub package pub package

Alice is an HTTP Inspector tool for Flutter which helps debugging http requests. It catches and stores http requests and responses, which can be viewed via simple UI. It is inspired from Chuck (

Alice supports http clients:

  • Dio
  • HttpClient from dart:io package
  • Http from http/http package

Install #

  1. Add this to your package's pubspec.yaml file:
  alice: ^0.0.6
  1. Install it
$ flutter packages get
  1. Import it
import 'package:alice/alice.dart';

How to use #

Create Alice instance:

  Alice alice = Alice(showNotification: true);

Alice default behaviour is to show notification with http requests. You can disable it Alice constructor.

Add navigator key to your application:

  MaterialApp( navigatorKey: alice.getNavigatorKey(), home: ...)

You need to add this navigator key in order to show inspector UI. You can use also your navigator key in Alice:

    Alice alice = Alice(showNotification: true, navigatorKey: yourNavigatorKeyHere);

If you're using Dio, you just need to add interceptor.

  Dio dio = Dio();

If you're using HttpClient from dart:io package:

        .then((request) async {
      var httpResponse = await request.close();
      var responseBody = await httpResponse.transform(utf8.decoder).join();
      alice.onHttpClientResponse(httpResponse, request, body: responseBody);

If you're using http from http/http package:

    http.get('').then((response) {

To show inspector manually:


See complete example here:

0.0.6 #

  • Fixed http/http package requests

0.0.5 #

  • Updated dependencies
  • Navigator key can be provided now from application (instead of using Alice's navigator key)

0.0.4 #

  • Updated Kotlin version

0.0.3 #

  • Removed gif from package

0.0.2 #

  • Bug fixes

0.0.1 #

  • Initial release


alice_example #

Demonstrates how to use the alice plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  alice: ^0.0.6

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:alice/alice.dart';
Version Uploaded Documentation Archive
0.0.6 Jun 13, 2019 Go to the documentation of alice 0.0.6 Download alice 0.0.6 archive
0.0.5 Jun 5, 2019 Go to the documentation of alice 0.0.5 Download alice 0.0.5 archive
0.0.4 Mar 18, 2019 Go to the documentation of alice 0.0.4 Download alice 0.0.4 archive
0.0.3 Mar 17, 2019 Go to the documentation of alice 0.0.3 Download alice 0.0.3 archive
0.0.2 Mar 7, 2019 Go to the documentation of alice 0.0.2 Download alice 0.0.2 archive
0.0.1 Mar 7, 2019 Go to the documentation of alice 0.0.1 Download alice 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jun 25, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/ui/alice_calls_list_screen.dart. (-0.50 points)

Analysis of lib/ui/alice_calls_list_screen.dart reported 1 hint:

line 52 col 28: Set literals were not supported until version 2.2, but this code is required to be able to run on earlier versions.

Format lib/alice.dart.

Run flutter format to format lib/alice.dart.

Format lib/core/alice_http_adapter.dart.

Run flutter format to format lib/core/alice_http_adapter.dart.

Maintenance issues and suggestions

Support latest dependencies. (-5 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
dio ^2.1.7 2.1.7
flutter 0.0.0
flutter_local_notifications ^0.7.1+1 0.7.1+3
http ^0.12.0+2 0.12.0+2
rxdart ^0.22.0 0.22.0
Transitive dependencies
async 2.2.0
charcode 1.1.2
collection 1.14.11
cookie_jar 1.0.0
http_parser 3.1.3
meta 1.1.6 1.1.7
path 1.6.2
pedantic 1.7.0
platform 2.2.0
sky_engine 0.0.99
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies