flutter_storage_info_plus 1.0.1 copy "flutter_storage_info_plus: ^1.0.1" to clipboard
flutter_storage_info_plus: ^1.0.1 copied to clipboard

A Flutter plugin project for get total and free storage info for android and ios.

Flutter Storage Info Plugin #

A Flutter plugin to retrieve free storage and available storage on both Android and iOS using Method Channels.

Features #

✅ Get free storage space in GB
✅ Get available storage (total - used) in GB
✅ Supports Android & iOS
✅ Uses Flutter Method Channels to communicate with native platforms


Installation #

  1. Add dependency to your pubspec.yaml:
    dependencies:
      flutter:
        sdk: flutter
      flutter_storage_info_plus:
    
  2. Run:
    flutter pub get
    

Usage #

1. Import the package #

import 'package:flutter_storage_info_plus/flutter_storage_info_plus.dart';

2. Fetch Storage Info #

Get Free Storage:

double? freeStorage = await FlutterStorageInfo().getFreeStorage();
print("Free Storage: $freeStorage GB");

Get Available Storage:

double? availableStorage = await FlutterStorageInfo().getAvailableStorage();
print("Available Storage: $availableStorage GB");

Contribution #

👨‍💻 Contributions are welcome! Feel free to fork, modify, and submit PRs.
For feature requests and issues, open a ticket in the GitHub issues section.


License #

📝 MIT License
Feel free to use and modify this plugin in your projects.


Author #

👩‍💻 Richa
🚀 Follow for more Flutter plugins and development tips!

1
likes
160
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin project for get total and free storage info for android and ios.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_storage_info_plus

Packages that implement flutter_storage_info_plus