dio_flutter_transformer 2.0.6 copy "dio_flutter_transformer: ^2.0.6" to clipboard
dio_flutter_transformer: ^2.0.6 copied to clipboard

discontinuedreplaced by: dio
outdated

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_transformer.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);
}
20
likes
0
pub points
75%
popularity

Publisher

verified publisherflutterchina.club

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

License

unknown (LICENSE)

Dependencies

dio, flutter

More

Packages that depend on dio_flutter_transformer