flutter_cache_manager_dio_proxy 1.0.1 copy "flutter_cache_manager_dio_proxy: ^1.0.1" to clipboard
flutter_cache_manager_dio_proxy: ^1.0.1 copied to clipboard

flutter_cache_manager with dio proxy

Flutter_cache_manager_dio #

flutter_cache_manager with dio

Getting Started #

A Dio implementation for flutter_cache_manager_dio

var dio = Dio();
dio.interceptors.add(LogInterceptor(responseBody: false));
DioCacheManager.initialize(dio);
var file = await DioCacheManager.instance.getSingleFile(url);

Can use Dio Interceptors etc.

cached_network_image can use

Like glide with okhttp

CachedNetworkImage(
    cacheManager: DioCacheManager.instance,
    imageUrl: url,
    placeholder: (context, url) => CircularProgressIndicator(),
    errorWidget: (context, url, error) => Container(
    child: Text(
        'error',
        ),
    ),
);
'''
0
likes
110
pub points
0%
popularity

Publisher

unverified uploader

flutter_cache_manager with dio proxy

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dio, flutter, flutter_cache_manager

More

Packages that depend on flutter_cache_manager_dio_proxy