dio_flutter_transformer2 4.0.1
dio_flutter_transformer2: ^4.0.1 copied to clipboard

A dio transformer espically for flutter, by which the json decoding will be in background with [compute] function in flutter sdk.

example/example.dart

import 'package:dio/dio.dart';
import '../lib/dio_flutter_transformer2.dart';

main() async {
    var dio = Dio();
    // replace dio default transformer
    dio.transformer = new FlutterTransformer();

    //....
    Response response =
        await dio.get("https://api.github.com/orgs/flutterchina/repos");
    print(response.data);
}
2
likes
130
pub points
76%
popularity

A dio transformer espically for flutter, by which the json decoding will be in background with [compute] function in flutter sdk.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dio, flutter

More

Packages that depend on dio_flutter_transformer2