sparrow_dio 0.11.0 sparrow_dio: ^0.11.0 copied to clipboard
sparrow团队完成的对dio的封装,实现dio的async await调用以及回调方式的调用.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add sparrow_dio
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
sparrow_dio: ^0.11.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:sparrow_dio/sparrow_dio.dart';