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

discontinuedreplaced by: dio

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

dio_flutter_transformer Pub #

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

Through practical experience, we find that although using compute can make tasks go on in the background, it may lead to slow task execution. So please think carefully before using it.

Install #

dependencies:
  dio_flutter_transformer: ^3.0.2 # latest version
copied to clipboard

Usage #

Import the package:

import 'package:dio/dio.dart';
import 'package:dio_flutter_transformer/dio_flutter_transformer.dart';
copied to clipboard

Then replace dio default transformer:


var dio=Dio();
dio.transformer = FlutterTransformer(); // replace dio default transformer
dio.get(...);
copied to clipboard
20
likes
30
points
63
downloads

Publisher

verified publisherflutterchina.club

Weekly Downloads

2024.10.22 - 2025.09.16

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

Repository (GitHub)

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on dio_flutter_transformer