Skip to content
A flutter-specific dio transformer.
Dart Java
Branch: master
Clone or download
Latest commit 68bb08c Sep 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android update to 2.0.3 Feb 14, 2019
example update to 2.0.3 Feb 14, 2019
lib update to 2.0.10 Feb 20, 2019
test update to 2.0.3 Feb 14, 2019
.gitignore first commit Feb 12, 2019
.metadata first commit Feb 12, 2019
CHANGELOG.md support dio 3.0 Sep 19, 2019
LICENSE first commit Feb 12, 2019
README.md support dio 3.0 Sep 19, 2019
dio_flutter_transformer.iml first commit Feb 12, 2019
pubspec.yaml support dio 3.0 Sep 19, 2019

README.md

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

Usage

Import the package:

import 'package:dio/dio.dart';
import 'package:dio_flutter_transformer/dio_flutter_transformer.dart';

Then replace dio default transformer:

var dio=Dio();
dio.transformer = FlutterTransformer(); // replace dio default transformer
dio.get(...);
You can’t perform that action at this time.