api_result_kit 1.0.0 copy "api_result_kit: ^1.0.0" to clipboard
api_result_kit: ^1.0.0 copied to clipboard

A typed Result/Error handling kit for Flutter apps. Normalizes errors from FastAPI, Express, and generic REST backends into a consistent ApiResult<T> type, with ready-made widgets for consistent UI er [...]

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add api_result_kit

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  api_result_kit: ^1.0.0

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

Import it

Now in your Dart code, you can use:

import 'package:api_result_kit/api_result_kit.dart';
2
likes
150
points
44
downloads

Documentation

API reference

Publisher

verified publisherv-nerdy.cloud

Weekly Downloads

A typed Result/Error handling kit for Flutter apps. Normalizes errors from FastAPI, Express, and generic REST backends into a consistent ApiResult<T> type, with ready-made widgets for consistent UI error handling (snackbar / inline / retry / auth-redirect).

Repository (GitHub)
View/report issues

Topics

#networking #error-handling #dio #state-management #rest-api

License

MIT (license)

Dependencies

dio, flutter, flutter_animate, flutter_svg

More

Packages that depend on api_result_kit