Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Dio | 11,983 | 570 | 1,408 | 2 days ago | 134 | November 30, 2023 | 25 | mit | Dart | |
A powerful HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc. | ||||||||||
Getx | 9,334 | 1 | 350 | 17 days ago | 315 | September 08, 2023 | 921 | mit | Dart | |
Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get. | ||||||||||
Gopeed | 7,656 | a day ago | 32 | December 02, 2023 | 12 | gpl-3.0 | Dart | |||
A modern download manager that supports all platforms. Built with Golang and Flutter. | ||||||||||
Flutter_app | 2,417 | 8 months ago | 9 | apache-2.0 | Dart | |||||
🔥🔥🔥本项目包括各种基本控件使用(Text、TextField、Icon、Image、Listview、Gridview、Picker、Stepper、Dialog、Slider、Row、Appbar、Sizebox、BottomSheet、Chip、Dismissible、FlutterLogo、Check、Switch、TabBar、BottomNavigationBar、Sliver等)、豆瓣电影、tubitv、每日一文、和天气、百姓生活、随机诗词、联系人、句子迷、好奇心日报、有道精品课、高德定位、音乐播放器🎵、追书神器等板块 | ||||||||||
Reqable App | 1,109 | 6 days ago | 106 | |||||||
Reqable issue track repo | ||||||||||
Http | 975 | 5,451 | 4,065 | 3 days ago | 122 | November 27, 2023 | 214 | bsd-3-clause | Dart | |
A composable API for making HTTP requests in Dart. | ||||||||||
Niubility Coding Js | 500 | a year ago | 50 | HTML | ||||||
📒 霖呆呆的个人博客汇总 | ||||||||||
Alice | 500 | 2 | 3 | 6 days ago | 54 | November 12, 2023 | 11 | apache-2.0 | Dart | |
HTTP Inspector for Flutter. Allows checking HTTP connections with UI inspector. | ||||||||||
Dart Basic Utils | 340 | 8 | 54 | 12 days ago | 136 | October 24, 2023 | 11 | mit | Dart | |
A dart package for many helper methods fitting common situations | ||||||||||
Dio Http Cache | 201 | 7 | 15 | 2 years ago | 19 | July 23, 2021 | 30 | apache-2.0 | Dart | |
http cache lib for Flutter dio like RxCache |
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 and Chucker.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Supported Dart http client plugins:
Features:
✔️ Detailed logs for each HTTP calls (HTTP Request, HTTP Response)
✔️ Inspector UI for viewing HTTP calls
✔️ Save HTTP calls to file
✔️ Statistics
✔️ Notification on HTTP call
✔️ Support for top used HTTP clients in Dart
✔️ Error handling
✔️ Shake to open inspector
✔️ HTTP calls search
✔️ Flutter/Android logs
dependencies:
alice: ^0.4.1
$ flutter packages get
import 'package:alice/alice.dart';
Alice alice = Alice();
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 need to pass navigatorKey lazily, you can use:
alice.setNavigatorKey(yourNavigatorKeyHere);
This is minimal configuration required to run Alice. Can set optional settings in Alice constructor, which are presented below. If you don't want to change anything, you can move to Http clients configuration.
You can set showNotification
in Alice constructor to show notification. Clicking on this notification will open inspector.
Alice alice = Alice(..., showNotification: true);
You can set showInspectorOnShake
in Alice constructor to open inspector by shaking your device (default disabled):
Alice alice = Alice(..., showInspectorOnShake: true);
If you want to pass another notification icon, you can use notificationIcon
parameter. Default value is @mipmap/ic_launcher.
Alice alice = Alice(..., notificationIcon: "myNotificationIconResourceName");
If you want to limit max numbers of HTTP calls saved in memory, you may use maxCallsCount
parameter.
Alice alice = Alice(..., maxCallsCount: 1000));
If you want to change the Directionality of Alice, you can use the directionality
parameter. If the parameter is set to null, the Directionality of the app will be used.
Alice alice = Alice(..., directionality: TextDirection.ltr);
If you want to hide share button, you can use showShareButton
parameter.
Alice alice = Alice(..., showShareButton: false);
If you're using Dio, you just need to add interceptor.
Dio dio = Dio();
dio.interceptors.add(alice.getDioInterceptor());
If you're using HttpClient from dart:io package:
httpClient
.getUrl(Uri.parse("https://jsonplaceholder.typicode.com/posts"))
.then((request) async {
alice.onHttpClientRequest(request);
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('https://jsonplaceholder.typicode.com/posts').then((response) {
alice.onHttpResponse(response);
});
If you're using Chopper. you need to add interceptor:
chopper = ChopperClient(
interceptors: [alice.getChopperInterceptor()],
);
Attention! Alice will add special "alice_token" header to the request in order to calculate correct id for the http call.
If you have other HTTP client you can use generic http call interface:
AliceHttpCall aliceHttpCall = AliceHttpCall(id);
alice.addHttpCall(aliceHttpCall);
You may need that if you won't use shake or notification:
alice.showInspector();
Alice supports saving logs to your mobile device storage. In order to make save feature works, you need to add in your Android application manifest:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
If you want to log Flutter logs in Alice, you may use these methods:
alice.addLog(log);
alice.addLogs(logList);
Check current inspector state (opened/closed) with:
alice.isInspectorOpened();
You can use extensions to shorten your http and http client code. This is optional, but may improve your codebase. Example:
import 'package:alice/core/alice_http_client_extensions.dart';
import 'package:alice/core/alice_http_extensions.dart';
http
.post('https://jsonplaceholder.typicode.com/posts', body: body)
.interceptWithAlice(alice, body: body);
httpClient
.postUrl(Uri.parse("https://jsonplaceholder.typicode.com/posts"))
.interceptWithAlice(alice, body: body, headers: Map());
See complete example here: https://github.com/jhomlala/alice/blob/master/example/lib/main.dart To run project, you need to call this command in your terminal:
flutter pub run build_runner build --delete-conflicting-outputs
You need to run this command to build Chopper generated classes. You should run this command only once, you don't need to run this command each time before running project (unless you modify something in Chopper endpoints).