desktop_disk_space 0.0.1 copy "desktop_disk_space: ^0.0.1" to clipboard
desktop_disk_space: ^0.0.1 copied to clipboard

A Flutter plugin to query the disk space in desktop

Pub license

desktop_disk_space #

A Flutter plugin to query the disk space in desktop

Installing #

With Flutter:

$ flutter pub add desktop_disk_space

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
desktop_disk_space: ^0.0.1

Note #

  • This plugin is under development and currently only supports windows.
  • Support for Linux will be added in the future.
  • Pull requests are welcome (especially for MacOS support)

Usage #

void test() async {
  final currentDriveTotalSpace = await DesktopDiskSpace.instance.getTotalSpace();
  final currentDriveFreeSpace = await DesktopDiskSpace.instance.getFreeSpace();
  final c_driveTotalSpace = await DesktopDiskSpace.instance.getTotalSpace("C:\\");
  final c_driveFreeSpace = await DesktopDiskSpace.instance.getFreeSpace("C:\\"); 
}
3
likes
140
pub points
76%
popularity

Publisher

unverified uploader

A Flutter plugin to query the disk space in desktop

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on desktop_disk_space