Skip to content
pubscout

disk_space_plus

0.2.8, released 3 weeks ago by an unverified publisher

Get free and total disk space in megabytes on Android and iOS.

$ flutter pub add disk_space_plus
Source repository

What it does

The plugin exposes methods to read the amount of free and total storage on a device. Results are returned in megabytes (MB). It works as a simple Flutter plugin for Android and iOS.

AI-written summary of version 0.2.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to show available storage to the user
  • You want to decide whether to download large assets based on free space
  • You need a quick check before performing cache‑clearing operations

Skip it when

  • You require real‑time storage monitoring
  • You need support for platforms other than Android or iOS
  • You need detailed file‑system browsing or management

Strengths

  • Very small and easy to use
  • Works with the latest Flutter SDK
  • Returns values in a convenient MB unit

Weaknesses

  • Only Android and iOS are supported
  • Requires manual initialization before use
  • No streaming or continuous updates

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Instantiate DiskSpacePlus and await getFreeDiskSpace / getTotalDiskSpace; no extra permissions required

final disk = DiskSpacePlus();
final free = await disk.getFreeDiskSpace ?? 0;
final total = await disk.getTotalDiskSpace ?? 0;
print('Free: $free MB, Total: $total MB');

Alternatives

Packages that do the same job and could replace disk_space_plus.

Works with

Packages commonly used together with disk_space_plus: ones it builds on, ones built on it, and its own family.