smart_api 1.1.1
smart_api: ^1.1.1 copied to clipboard
Dynamic Dio wrapper for Flutter — auto raw/multipart detection, global loader/snackbar/toast hooks, session-expiry handling, and no-internet retry, no try/catch boilerplate.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add smart_apiThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
smart_api: ^1.1.1Alternatively, 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:smart_api/smart_api.dart';