alice_get_connect

Creator: coderz1093

Last updated:

Add to Cart

Description:

alice get connect

AliceGetConnect is a Flutter library that enables seamless integration
between the HTTP Inspector library
flutter_alice,
and the HTTP Networking library get_connect from GetX.
Features #

Detailed logs for each HTTP call (HTTP Request, HTTP Response)
Inspector UI for viewing HTTP calls
Statistics tracking
Error handling capabilities
HTTP call search functionality
Bubble overlay entry support
Support for GetConnect from GetX
Handle connection timeout

Usage #

Create AliceGetConnect instance

AliceGetConnect alice = AliceGetConnect();
copied to clipboard
Since GetConnect does not have a callback for handling connection timeouts, AliceGetConnect will by default consider a request timeout if it exceeds 30 seconds. You can also set the timeout by configuring the time parameters at initialization
AliceGetConnect alice = AliceGetConnect(
timeout: const Duration(seconds: 60)
);
copied to clipboard
You can also use it to set the timeout in getConnect
httpClient.timeout = alice.timeout;
copied to clipboard

Add navigator key to GetMaterialApp

GetMaterialApp(navigatorKey: alice.getNavigatorKey(), home: ...);
copied to clipboard
You need to add this navigator key in order to show inspector UI. You can use also your navigator key in Alice:
AliceGetConnect(navigatorKey: _navKey);
copied to clipboard

Add OverlaySupport in GetMaterialApp

because AliceGetConnect uses bubble overlay, add OverlaySupport in GetMaterialApp
OverlaySupport.global(child: GetMaterialApp(...));
copied to clipboard

Add Request & Response Modifier

httpClient.addRequestModifier(alice.requestInterceptor);
httpClient.addResponseModifier(alice.responseInterceptor);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.