visual_cache 0.1.3-alpha copy "visual_cache: ^0.1.3-alpha" to clipboard
visual_cache: ^0.1.3-alpha copied to clipboard

Visual Cache was created to help you see how much cache your application has accumulated.

Visual Cache #

A Flutter package for easily obtaining the size of the application cache. Visual Cache allows you to retrieve the cache size in a human-readable format (MB or GB), making it suitable for displaying cache-related information in your app's UI.

Features #

  • Get the cache size of your Flutter application.
  • Display cache size in MB or GB.
  • Easy to integrate and use in any Flutter app.

Screenshots #

Getting Started #

To use the Visual Cache package, follow these simple steps:

Installation #

Add Visual Cache as a dependency in your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  visual_cache: ^0.1.0-alpha

Usage #

// Import package
import 'package:visual_cache/visual_cache.dart';

// Show cache
FutureBuilder<String>(
  future: VisualCache().getCacheSize(),
  builder: (BuildContext context, AsyncSnapshot<String> snapshot) {
    if (snapshot.connectionState == ConnectionState.waiting) {
      return CircularProgressIndicator();
    } else if (snapshot.hasError) {
      return Text('Error: ${snapshot.error}');
    } else {
      return Text(
        snapshot.data ?? 'Cache size not available',
        style: Theme.of(context).textTheme.headlineMedium,
      );
    }
  },
)

Available temporarily only for Android

5
likes
0
points
37
downloads

Publisher

verified publishersmollaitc.org

Weekly Downloads

Visual Cache was created to help you see how much cache your application has accumulated.

Repository (GitHub)
View/report issues

Topics

#visual-cache #cache #image-picker #files

License

unknown (license)

Dependencies

flutter, path_provider

More

Packages that depend on visual_cache