Flutter package for easily obtaining the size of the application cache

A Flutter package for easily obtaining the size of the application cache

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 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

<img decoding=
flutter size cache

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.0.0-betta.3

Usage

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

// Show cache chart
 VisualCache(
   // 'Path to subdirectories ': '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
   ],
   showLegends: true, // Enable disable display of directory names
 )    

Available temporarily only for Android.

Resources Used:

You can check out the entire code of this App here:

Get Full Source Code

View Github

Conclusion

This was all about a quick go through the basic flutter App UI Screen. If you need any assistance regarding flutter app development, you can consult a flutter developer from FlutterDesk. We would love to be of help. Still, if you feel any difficult while dealing with Flutter app development projects, you can reach out to us or hire Flutter developers to outsource any of your app development project.

Do like & share my Facebook page. if you find this post helpful. Thank you!!

Happy coding! 😉

Related Articles:

READ MORE

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top