CINXE.COM

flutter_cache_manager | Flutter package

<!DOCTYPE html> <html lang="en-us"><head><script src="https://www.googletagmanager.com/gtm.js?id=GTM-MX6DBN9" async="async"></script><script src="/static/hash-8pjab7lp/js/gtm.js" async="async"></script><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@dart_lang"/><meta name="twitter:description" content="Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite."/><meta name="twitter:image" content="https://pub.dev/static/hash-8pjab7lp/img/pub-dev-icon-cover-image.png"/><meta property="og:type" content="website"/><meta property="og:site_name" content="Dart packages"/><meta property="og:title" content="flutter_cache_manager | Flutter package"/><meta property="og:description" content="Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite."/><meta property="og:image" content="https://pub.dev/static/hash-8pjab7lp/img/pub-dev-icon-cover-image.png"/><meta property="og:url" content="https://pub.dev/packages/flutter_cache_manager"/><title>flutter_cache_manager | Flutter package</title><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&amp;family=Google+Sans+Display:wght@400&amp;family=Google+Sans+Text:wght@400;500;700&amp;family=Google+Sans+Mono:wght@400;700&amp;display=swap"/><link rel="shortcut icon" href="/static/hash-8pjab7lp/img/flutter-logo-32x32.png"/><link rel="stylesheet" href="https://www.gstatic.com/glue/v25_0/ccb.min.css"/><link rel="search" type="application/opensearchdescription+xml" title="Dart packages" href="/osd.xml"/><link rel="canonical" href="https://pub.dev/packages/flutter_cache_manager"/><meta name="description" content="Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite."/><link rel="alternate" type="application/atom+xml" title="Updated Packages Feed for Pub" href="/feed.atom"/><link rel="stylesheet" type="text/css" href="/static/hash-8pjab7lp/material/bundle/styles.css"/><link rel="stylesheet" type="text/css" href="/static/hash-8pjab7lp/css/style.css"/><script src="/static/hash-8pjab7lp/material/bundle/script.min.js" defer="defer"></script><script src="/static/hash-8pjab7lp/js/script.dart.js" defer="defer"></script><script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script><meta name="pub-page-data" content="eyJwa2dEYXRhIjp7InBhY2thZ2UiOiJmbHV0dGVyX2NhY2hlX21hbmFnZXIiLCJ2ZXJzaW9uIjoiMy40LjEiLCJsaWtlcyI6MTc1NiwicHVibGlzaGVySWQiOiJiYXNlZmxvdy5jb20iLCJpc0Rpc2NvbnRpbnVlZCI6ZmFsc2UsImlzTGF0ZXN0Ijp0cnVlfSwic2Vzc2lvbkF3YXJlIjpmYWxzZX0="/><link rel="preload" href="/static/hash-8pjab7lp/highlight/highlight-with-init.js" as="script"/></head><body class="light-theme"><script src="/static/hash-8pjab7lp/js/dark-init.js"></script><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div class="site-header"><button class="hamburger" aria-label="menu toggle"></button><a class="logo" href="/" aria-label="Go to the landing page of pub.dev"><img class="site-logo" src="/static/hash-8pjab7lp/img/pub-dev-logo.svg" alt="" width="140" height="30" role="presentation"/></a><div class="site-header-space"></div><div class="site-header-mask"></div><div class="site-header-search"><form action="/packages" method="GET"><input class="site-header-search-input" name="q" placeholder="New search..." autocomplete="on" title="Search"/></form></div><nav class="site-header-nav scroll-container"><div class="nav-login-container"><button id="-account-login" class="nav-main-button link">Sign in</button></div><div class="nav-container nav-help-container hoverable"><button class="nav-main-button">Help</button><div class="nav-hover-popup"><div class="nav-table-columns"><div class="nav-table-column"><h3>pub.dev</h3><a class="nav-link" href="/help/search" rel="noopener" target="_blank">Searching for packages</a><a class="nav-link" href="/help/scoring" rel="noopener" target="_blank">Package scoring and pub points</a></div><div class="nav-table-column"><h3>Flutter</h3><a class="nav-link" href="https://flutter.dev/using-packages/" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://flutter.dev/developing-packages/" rel="noopener" target="_blank">Developing packages and plugins</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div><div class="nav-table-column"><h3>Dart</h3><a class="nav-link" href="https://dart.dev/guides/packages" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div></div></div></div><div class="nav-container nav-help-container-mobile foldable"><h3 class="foldable-button">pub.dev <img class="foldable-icon" src="/static/hash-8pjab7lp/img/nav-mobile-foldable-icon.svg" alt="toggle folding of the section" width="13" height="6"/></h3><div class="foldable-content"><a class="nav-link" href="/help/search" rel="noopener" target="_blank">Searching for packages</a><a class="nav-link" href="/help/scoring" rel="noopener" target="_blank">Package scoring and pub points</a></div></div><div class="nav-container nav-help-container-mobile foldable"><h3 class="foldable-button">Flutter <img class="foldable-icon" src="/static/hash-8pjab7lp/img/nav-mobile-foldable-icon.svg" alt="toggle folding of the section" width="13" height="6"/></h3><div class="foldable-content"><a class="nav-link" href="https://flutter.dev/using-packages/" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://flutter.dev/developing-packages/" rel="noopener" target="_blank">Developing packages and plugins</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div></div><div class="nav-container nav-help-container-mobile foldable"><h3 class="foldable-button">Dart <img class="foldable-icon" src="/static/hash-8pjab7lp/img/nav-mobile-foldable-icon.svg" alt="toggle folding of the section" width="13" height="6"/></h3><div class="foldable-content"><a class="nav-link" href="https://dart.dev/guides/packages" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div></div></nav><button class="-pub-theme-toggle" aria-label="light/dark theme toggle"></button></div><div id="banner-container"></div><main class="container"><div class="detail-wrapper -active -has-info-box"><div class="detail-header -is-loose"><div class="detail-container"><div class="detail-header-outer-block"><div class="detail-header-content-block"><h1 class="title">flutter_cache_manager 3.4.1 <span class="pkg-page-title-copy"><img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-8pjab7lp/img/content-copy-icon.svg" alt="copy &quot;flutter_cache_manager: ^3.4.1&quot; to clipboard" width="18" height="18" title="Copy &quot;flutter_cache_manager: ^3.4.1&quot; to clipboard" data-copy-content="flutter_cache_manager: ^3.4.1" data-ga-click-event="copy-package-version"/><div class="pkg-page-title-copy-feedback"><span class="code">flutter_cache_manager: ^3.4.1</span> copied to clipboard</div></span></h1><div class="metadata">Published <span><a class="-x-ago" href="" title="Aug 13, 2024" role="button" data-timestamp="1723550893278">6 months ago</a></span> • <a class="-pub-publisher" href="/publishers/baseflow.com"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-8pjab7lp/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>baseflow.com</a><span class="package-badge" title="Package is compatible with Dart 3.">Dart 3 compatible</span></div><div class="detail-tags-and-like"><div class="detail-tags"><div class="-pub-tag-badge"><span class="tag-badge-main">SDK</span><a class="tag-badge-sub" href="/packages?q=sdk%3Aflutter" rel="nofollow" title="Packages compatible with Flutter SDK">Flutter</a></div><div class="-pub-tag-badge"><span class="tag-badge-main">Platform</span><a class="tag-badge-sub" href="/packages?q=platform%3Aandroid" rel="nofollow" title="Packages compatible with Android platform">Android</a><a class="tag-badge-sub" href="/packages?q=platform%3Aios" rel="nofollow" title="Packages compatible with iOS platform">iOS</a><a class="tag-badge-sub" href="/packages?q=platform%3Alinux" rel="nofollow" title="Packages compatible with Linux platform">Linux</a><a class="tag-badge-sub" href="/packages?q=platform%3Amacos" rel="nofollow" title="Packages compatible with macOS platform">macOS</a><a class="tag-badge-sub" href="/packages?q=platform%3Aweb" rel="nofollow" title="Packages compatible with Web platform">web</a><a class="tag-badge-sub" href="/packages?q=platform%3Awindows" rel="nofollow" title="Packages compatible with Windows platform">Windows</a></div></div><div class="detail-like"><button id="-pub-like-icon-button" class="mdc-icon-button" data-ga-click-event="toggle-like" aria-pressed="false" title="Like this package"><img class="mdc-icon-button__icon" src="/static/hash-8pjab7lp/img/like-inactive.svg" alt="liked status: inactive" width="18" height="18"/><img class="mdc-icon-button__icon mdc-icon-button__icon--on" src="/static/hash-8pjab7lp/img/like-active.svg" alt="liked status: active" width="18" height="18"/></button><span class="likes-count"><span id="likes-count">1.7k</span></span></div></div></div></div></div></div><div class="detail-container"><div class="detail-lead"><div class="detail-metadata-toggle"><div class="detail-metadata-toggle-icon">→</div><h3 class="detail-lead-title">Metadata</h3></div><p class="detail-lead-text">Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite.</p><p class="detail-lead-more"><a class="detail-metadata-toggle">More...</a></p></div></div><div class="detail-body"><div class="detail-tabs"><div class="detail-tabs-wide-header"><div class="detail-container"><ul class="detail-tabs-header"><li class="detail-tab tab-button detail-tab-readme-title -active">Readme</li><li class="detail-tab tab-link detail-tab-changelog-title"><a href="/packages/flutter_cache_manager/changelog" role="button">Changelog</a></li><li class="detail-tab tab-link detail-tab-example-title"><a href="/packages/flutter_cache_manager/example" role="button">Example</a></li><li class="detail-tab tab-link detail-tab-installing-title"><a href="/packages/flutter_cache_manager/install" role="button">Installing</a></li><li class="detail-tab tab-link detail-tab-versions-title"><a href="/packages/flutter_cache_manager/versions" role="button">Versions</a></li><li class="detail-tab tab-link detail-tab-analysis-title"><a href="/packages/flutter_cache_manager/score" role="button">Scores</a></li></ul></div></div><div class="detail-container detail-body-main"><div class="detail-tabs-content"><section class="tab-content detail-tab-readme-content -active markdown-body"><p><b>BREAKING CHANGES IN V2</b></p> <p>CacheManager v2 introduced some breaking changes when configuring a custom CacheManager. <a href="#breaking-changes-in-v2">See the bottom of this page for the changes.</a></p> <h1 class="hash-header" id="flutter_cache_manager">flutter_cache_manager <a href="#flutter_cache_manager" class="hash-link">#</a></h1> <p><a href="https://pub.dartlang.org/packages/flutter_cache_manager" rel="ugc"><img src="https://img.shields.io/pub/v/flutter_cache_manager.svg" alt="pub package"></a> <a href="https://github.com/Baseflow/flutter_cache_manager/actions/workflows/build.yaml" rel="ugc"><img src="https://github.com/Baseflow/flutter_cache_manager/actions/workflows/build.yaml/badge.svg" alt="build"></a> <a href="https://codecov.io/gh/Baseflow/flutter_cache_manager" rel="ugc"><img src="https://codecov.io/gh/Baseflow/flutter_cache_manager/branch/master/graph/badge.svg" alt="codecov"></a></p> <p>A CacheManager to download and cache files in the cache directory of the app. Various settings on how long to keep a file can be changed.</p> <p>It uses the cache-control http header to efficiently retrieve files.</p> <p>The more basic usage is explained here. See the complete docs for more info.</p> <h2 class="hash-header" id="usage">Usage <a href="#usage" class="hash-link">#</a></h2> <p>The cache manager can be used to get a file on various ways The easiest way to get a single file is call <code>.getSingleFile</code>.</p> <pre><code> var file = await DefaultCacheManager().getSingleFile(url); </code></pre> <p><code>getFileStream(url)</code> returns a stream with the first result being the cached file and later optionally the downloaded file.</p> <p><code>getFileStream(url, withProgress: true)</code> when you set withProgress on true, this stream will also emit DownloadProgress when the file is not found in the cache.</p> <p><code>downloadFile(url)</code> directly downloads from the web.</p> <p><code>getFileFromCache</code> only retrieves from cache and returns no file when the file is not in the cache.</p> <p><code>putFile</code> gives the option to put a new file into the cache without downloading it.</p> <p><code>removeFile</code> removes a file from the cache.</p> <p><code>emptyCache</code> removes all files from the cache.</p> <h3 class="hash-header" id="imagecachemanager">ImageCacheManager <a href="#imagecachemanager" class="hash-link">#</a></h3> <p>If you use the ImageCacheManager mixin on the CacheManager (which is already done on the DefaultCacheManager) you get the following <code>getImageFile</code> method for free:</p> <pre><code>Stream&lt;FileResponse&gt; getImageFile(String url, { String key, Map&lt;String, String&gt; headers, bool withProgress, int maxHeight, // This is extra int maxWidth, // This is extra as well }) </code></pre> <p>The image from the url is resized within the specifications, and the resized images is stored in the cache. It always tries to keep the existing aspect ratios. The original image is also cached and used to resize the image if you call this method with other height/width parameters.</p> <h2 class="hash-header" id="other-implementations">Other implementations <a href="#other-implementations" class="hash-link">#</a></h2> <p>When your files are stored on Firebase Storage you can use <a href="https://pub.dev/packages/flutter_cache_manager_firebase">flutter_cache_manager_firebase</a>.</p> <h2 class="hash-header" id="customize">Customize <a href="#customize" class="hash-link">#</a></h2> <p>The cache manager is customizable by creating a new CacheManager. It is very important to not create more than 1 CacheManager instance with the same key as these bite each other. In the example down here the manager is created as a Singleton, but you could also use for example Provider to Provide a CacheManager on the top level of your app. Below is an example with other settings for the maximum age of files, maximum number of objects and a custom FileService. The key parameter in the constructor is mandatory, all other variables are optional.</p> <pre><code>class CustomCacheManager { static const key = 'customCacheKey'; static CacheManager instance = CacheManager( Config( key, stalePeriod: const Duration(days: 7), maxNrOfCacheObjects: 20, repo: JsonCacheInfoRepository(databaseName: key), fileSystem: IOFileSystem(key), fileService: HttpFileService(), ), ); } </code></pre> <h2 class="hash-header" id="frequently-asked-questions">Frequently Asked Questions <a href="#frequently-asked-questions" class="hash-link">#</a></h2> <ul> <li><a href="#how-are-the-cache-files-stored">How are the cache files stored?</a></li> <li><a href="#when-are-the-cached-files-updated">When are the cached files updated?</a></li> <li><a href="#when-are-cached-files-removed">When are cached files removed?</a></li> </ul> <h3 class="hash-header" id="how-are-the-cache-files-stored">How are the cache files stored? <a href="#how-are-the-cache-files-stored" class="hash-link">#</a></h3> <p>By default the cached files are stored in the temporary directory of the app. This means the OS can delete the files any time.</p> <p>Information about the files is stored in a database using sqflite on Android, iOS and macOs, or in a plain JSON file on other platforms. The file name of the database is the key of the cacheManager, that's why that has to be unique.</p> <h3 class="hash-header" id="when-are-the-cached-files-updated">When are the cached files updated? <a href="#when-are-the-cached-files-updated" class="hash-link">#</a></h3> <p>A valid url response should contain a Cache-Control header. More info on the header can be found <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control" rel="ugc">here</a>, but in summary it says for how long the image can be expected to be up to date. It also contains an 'eTag' which can be used to check (after that time) whether the file did change or if it is actually still valid.</p> <p>When a file is in the cache that is always directly returned when calling <code>getSingleFile</code> or <code>getFileStream</code>. After that the information is check if the file is actually still valid. If the file is outdated according to the Cache-Control headers the manager tries to update the file and store the new one in the cache. When you use <code>getFileStream</code> this updated file will also be returned in the stream.</p> <h3 class="hash-header" id="when-are-cached-files-removed">When are cached files removed? <a href="#when-are-cached-files-removed" class="hash-link">#</a></h3> <p>The files can be removed by the cache manager or by the operating system. By default the files are stored in a cache folder, which is sometimes cleaned for example on Android with an app update.</p> <p>The cache manager uses 2 variables to determine when to delete a file, the <code>maxNrOfCacheObjects</code> and the <code>stalePeriod</code>. The cache knows when files have been used latest. When cleaning the cache (which happens continuously), the cache deletes files when there are too many, ordered by last use, and when files just haven't been used for longer than the stale period.</p> <h2 class="hash-header" id="breaking-changes-in-v2">Breaking changes in v2 <a href="#breaking-changes-in-v2" class="hash-link">#</a></h2> <ul> <li> <p>There is no longer a need to extend on BaseCacheManager, you can directly call the constructor. The BaseCacheManager is now only an interface. CacheManager is the implementation you can use directly.</p> </li> <li> <p>The constructor now expects a Config object with some settings you were used to, but some are slightly different. For example the system where you want to store your files is not just a dictionary anymore, but a FileSystem. That way you have more freedom on where to store your files.</p> </li> <li> <p>See the example in <a href="#customize">Customize</a>.</p> </li> </ul> </section></div></div></div><aside class="detail-info-box"><a class="packages-scores" href="/packages/flutter_cache_manager/score"><div class="packages-score packages-score-like"><div class="packages-score-value -has-value"><span class="packages-score-value-number">1.76k</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">likes</div></div><div class="packages-score packages-score-health"><div class="packages-score-value -has-value"><span class="packages-score-value-number">160</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">points</div></div><div class="packages-score packages-score-downloads" title="Number of downloads of this package during the past 30 days"><div class="packages-score-value -has-value"><span class="packages-score-value-number">2.12M</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">downloads</div></div></a><h3 class="title">Publisher</h3><p><a href="/publishers/baseflow.com"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-8pjab7lp/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>baseflow.com</a></p><h3 class="title">Weekly Downloads</h3><div id="-weekly-downloads-sparkline" class="weekly-downloads-sparkline" data-widget="weekly-sparkline" data-weekly-sparkline-points="gIeuZ3qXBwDKUAcACF0HAESaBwB2DQcAA14GAEr4AwA1MwQAsbsGABW7BwD5jAcA/acHAGGJBwD+vgcAWRQHAOOyBgBZFgcAKPsGAOphBwAxhgYAc9MGAE1XBgDcHwcAz7MGACuwBgD9jAYAAUsGAIM/BgAwjwYAsj8GAEShBQDvfwUArjYFANT8BQAYkgUASIsFAPRqBQC9VQUAB88FAGalBQBnGQUA2/MEAN54BQAmMQUAsboEALrSBABNxAQAVkMFAOleBQAMjQUA2FkFAHWDBQA="></div><h3 class="title pkg-infobox-metadata">Metadata</h3><p>Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite.</p><p><a class="link" href="https://github.com/Baseflow/flutter_cache_manager/tree/develop/flutter_cache_manager" rel="ugc">Repository (GitHub)</a><br/><a class="link" href="https://github.com/Baseflow/flutter_cache_manager/issues" rel="ugc">View&#47;report issues</a><br/><a class="link" href="https://github.com/Baseflow/flutter_cache_manager/blob/develop/CONTRIBUTING.md" rel="ugc">Contributing</a><br/></p><h3 class="title">Topics</h3><p><a class="topics-tag" href="/packages?q=topic%3Acache" rel="nofollow">#cache</a> <a class="topics-tag" href="/packages?q=topic%3Acache-manager" rel="nofollow">#cache-manager</a></p><h3 class="title">Documentation</h3><p><a class="link" href="/documentation/flutter_cache_manager/latest/">API reference</a><br/></p><h3 class="title">License</h3><p><img class="inline-icon-img filter-invert-on-dark" src="/static/hash-8pjab7lp/img/material-icon-balance.svg" alt="" width="14" height="14" role="presentation"/>MIT (<a href="/packages/flutter_cache_manager/license">license</a>)</p><h3 class="title">Dependencies</h3><p><a href="/packages/clock" title="^1.1.1">clock</a>, <a href="/packages/collection" title="^1.18.0">collection</a>, <a href="/packages/file" title="^7.0.0">file</a>, <a href="https://api.flutter.dev/">flutter</a>, <a href="/packages/http" title="^1.2.2">http</a>, <a href="/packages/path" title="^1.9.0">path</a>, <a href="/packages/path_provider" title="^2.1.4">path_provider</a>, <a href="/packages/rxdart" title="&gt;=0.27.7 &lt;0.29.0">rxdart</a>, <a href="/packages/sqflite" title="^2.3.3+1">sqflite</a>, <a href="/packages/uuid" title="^4.4.2">uuid</a></p><h3 class="title">More</h3><p><a href="/packages?q=dependency%3Aflutter_cache_manager" rel="nofollow">Packages that depend on flutter_cache_manager</a></p></aside></div><script type="application/ld+json">{"@context":"http\u003a\u002f\u002fschema.org","@type":"SoftwareSourceCode","name":"flutter\u005fcache\u005fmanager","version":"3.4.1","description":"flutter\u005fcache\u005fmanager - Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite.","url":"https\u003a\u002f\u002fpub.dev\u002fpackages\u002fflutter\u005fcache\u005fmanager","dateCreated":"2017-12-28T16\u003a06\u003a55.244333Z","dateModified":"2024-08-13T12\u003a08\u003a13.278756Z","programmingLanguage":"Dart","image":"https\u003a\u002f\u002fpub.dev\u002fstatic\u002fimg\u002fpub-dev-icon-cover-image.png","license":"https\u003a\u002f\u002fpub.dev\u002fpackages\u002fflutter\u005fcache\u005fmanager\u002flicense"}</script></div><div class="detail-metadata"><h3 class="detail-metadata-title"><span class="detail-metadata-toggle">←</span> Metadata</h3><div class="detail-info-box"><a class="packages-scores" href="/packages/flutter_cache_manager/score"><div class="packages-score packages-score-like"><div class="packages-score-value -has-value"><span class="packages-score-value-number">1.76k</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">likes</div></div><div class="packages-score packages-score-health"><div class="packages-score-value -has-value"><span class="packages-score-value-number">160</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">points</div></div><div class="packages-score packages-score-downloads" title="Number of downloads of this package during the past 30 days"><div class="packages-score-value -has-value"><span class="packages-score-value-number">2.12M</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">downloads</div></div></a><h3 class="title">Publisher</h3><p><a href="/publishers/baseflow.com"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-8pjab7lp/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>baseflow.com</a></p><h3 class="title">Weekly Downloads</h3><div id="-weekly-downloads-sparkline" class="weekly-downloads-sparkline" data-widget="weekly-sparkline" data-weekly-sparkline-points="gIeuZ3qXBwDKUAcACF0HAESaBwB2DQcAA14GAEr4AwA1MwQAsbsGABW7BwD5jAcA/acHAGGJBwD+vgcAWRQHAOOyBgBZFgcAKPsGAOphBwAxhgYAc9MGAE1XBgDcHwcAz7MGACuwBgD9jAYAAUsGAIM/BgAwjwYAsj8GAEShBQDvfwUArjYFANT8BQAYkgUASIsFAPRqBQC9VQUAB88FAGalBQBnGQUA2/MEAN54BQAmMQUAsboEALrSBABNxAQAVkMFAOleBQAMjQUA2FkFAHWDBQA="></div><h3 class="title pkg-infobox-metadata">Metadata</h3><p>Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite.</p><p><a class="link" href="https://github.com/Baseflow/flutter_cache_manager/tree/develop/flutter_cache_manager" rel="ugc">Repository (GitHub)</a><br/><a class="link" href="https://github.com/Baseflow/flutter_cache_manager/issues" rel="ugc">View&#47;report issues</a><br/><a class="link" href="https://github.com/Baseflow/flutter_cache_manager/blob/develop/CONTRIBUTING.md" rel="ugc">Contributing</a><br/></p><h3 class="title">Topics</h3><p><a class="topics-tag" href="/packages?q=topic%3Acache" rel="nofollow">#cache</a> <a class="topics-tag" href="/packages?q=topic%3Acache-manager" rel="nofollow">#cache-manager</a></p><h3 class="title">Documentation</h3><p><a class="link" href="/documentation/flutter_cache_manager/latest/">API reference</a><br/></p><h3 class="title">License</h3><p><img class="inline-icon-img filter-invert-on-dark" src="/static/hash-8pjab7lp/img/material-icon-balance.svg" alt="" width="14" height="14" role="presentation"/>MIT (<a href="/packages/flutter_cache_manager/license">license</a>)</p><h3 class="title">Dependencies</h3><p><a href="/packages/clock" title="^1.1.1">clock</a>, <a href="/packages/collection" title="^1.18.0">collection</a>, <a href="/packages/file" title="^7.0.0">file</a>, <a href="https://api.flutter.dev/">flutter</a>, <a href="/packages/http" title="^1.2.2">http</a>, <a href="/packages/path" title="^1.9.0">path</a>, <a href="/packages/path_provider" title="^2.1.4">path_provider</a>, <a href="/packages/rxdart" title="&gt;=0.27.7 &lt;0.29.0">rxdart</a>, <a href="/packages/sqflite" title="^2.3.3+1">sqflite</a>, <a href="/packages/uuid" title="^4.4.2">uuid</a></p><h3 class="title">More</h3><p><a href="/packages?q=dependency%3Aflutter_cache_manager" rel="nofollow">Packages that depend on flutter_cache_manager</a></p></div><p class="detail-lead-back"><a class="detail-metadata-toggle">Back</a></p></div><div id="-screenshot-carousel" class="carousel"><fab id="-carousel-prev" class="mdc-fab carousel-prev carousel-nav" data-mdc-auto-init="MDCRipple" title="Previous" data-ga-click-event="screenshot-carousel-prev-click" tabindex="0"><div class="mdc-fab__ripple"></div><img class="mdc-fab__icon" src="/static/hash-8pjab7lp/img/keyboard_arrow_left.svg" alt="previous" width="24" height="24" aria-hidden="true"/></fab><div id="-image-container" class="image-container"></div><fab id="-carousel-next" class="mdc-fab carousel-next carousel-nav" data-mdc-auto-init="MDCRipple" title="Next" data-ga-click-event="screenshot-carousel-next-click" tabindex="0"><div class="mdc-fab__ripple"></div><img class="mdc-fab__icon" src="/static/hash-8pjab7lp/img/keyboard_arrow_right.svg" alt="next" width="24" height="24" aria-hidden="true"/></fab><p id="-screenshot-description" class="screenshot-description"></p></div></main><footer class="site-footer"><a class="link" href="https://dart.dev/">Dart language</a><a class="link sep" href="/report?subject=package%3Aflutter_cache_manager&amp;url=https%3A%2F%2Fpub.dev%2Fpackages%2Fflutter_cache_manager">Report package</a><a class="link sep" href="/policy">Policy</a><a class="link sep" href="https://www.google.com/intl/en/policies/terms/">Terms</a><a class="link sep" href="https://developers.google.com/terms/">API Terms</a><a class="link sep" href="/security">Security</a><a class="link sep" href="https://www.google.com/intl/en/policies/privacy/">Privacy</a><a class="link sep" href="/help">Help</a><a class="link icon sep" href="/feed.atom"><img class="inline-icon" src="/static/hash-8pjab7lp/img/rss-feed-icon.svg" alt="RSS" width="20" height="20" title="RSS/atom feed"/></a><a class="link icon github_issue" href="https://github.com/dart-lang/pub-dev/issues/new"><img class="inline-icon" src="/static/hash-8pjab7lp/img/bug-report-white-96px.png" alt="bug report" width="20" height="20" title="Report an issue with this site"/></a></footer><script src="/static/hash-8pjab7lp/highlight/highlight-with-init.js" defer="defer"></script></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10