disk_space_2

Creator: coderz1093

Last updated:

Add to Cart

Description:

disk space 2

disk_space_2 #
A Flutter package that provides an easy way to get disk space information on Android and iOS devices.

Note
This is a fork of the disk_space package from Marvin Böddeker. Since it was not maintained, we decided to fork it and maintain it ourself. We will be adding new features and fixing bugs as needed.

Description #
This package allows you to get the following information about the device's disk space:

Free disk space
Total disk space
Free disk space for a specific path

Usage #
import 'package:disk_space_2/disk_space_2.dart';

void main() async {
double? freeDiskSpace = await DiskSpace.getFreeDiskSpace;
print('Free disk space: $freeDiskSpace');

double? totalDiskSpace = await DiskSpace.getTotalDiskSpace;
print('Total disk space: $totalDiskSpace');

double? freeDiskSpaceForPath = await DiskSpace.getFreeDiskSpaceForPath('/path/to/directory');
print('Free disk space for path: $freeDiskSpaceForPath');
}
copied to clipboard
Contributing #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Contributors #



Tom Ludwig



Original Contributors #



Marvin Böddeker
Jon Phipps



License #
This project is licensed under the MIT

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.