Skip to content

xfans/flutter_cache_manager_dio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter_cache_manager_dio

flutter_cache_manager_dio

Language: English | 中文简体

flutter_cache_manager with dio

Getting Started

A Dio implementation for flutter_cache_manager Like flutter_cache_manager_firebase

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',
        ),
    ),
);
'''

About

flutter_cache_manager with dio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages