visual_cache 1.2.0 copy "visual_cache: ^1.2.0" to clipboard
visual_cache: ^1.2.0 copied to clipboard

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

Pub Version

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 #

  • Real-time cache display/updates.
  • Get the cache size of your Flutter app.
  • Display cache size in MB or GB.
  • Easy to integrate and use in any Flutter app.
  • Ability to add your own catalogs and your own colors.
  • Flexible chart settings.

Screenshots #

image

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: ^1.2.0

Tested only on Android, can also work on iOS.

Usage #

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

 /// Show cache chart
 VisualCache(
   /// 'Path to subdirectories (folder)': 'Custom name subdirectories'
   namedSubdirectories: {
     'NewFolder': 'Images',
     'NewFolder2': 'Videos',
     'NewFolder3': 'File',
   },
   /// Custom colors subdirectories
   colorSubdirectories: [
     Colors.amberAccent, // Images color
     Colors.deepOrange, // Videos color
     Colors.deepPurpleAccent, // File color
     Colors.teal, // Add a final color for "Rest Cache" if you don't want it to be determined by itself
   ],
   showDirectoryName: true, // Enable disable display of directory names
   isRealTime: true, // Enable disable realtime cache
   /// Custom text style
    textStyle: TextStyle (
    color: Colors.black
  ),
)
5
likes
160
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

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, path_provider, pie_chart

More

Packages that depend on visual_cache