0 purchases
disk
Disk #
A flutter plugin for android to get storage volumes' information.
Add package from github #
dependencies:
disk: ^0.3.1
copied to clipboard
Example #
import 'package:disk/disk.dart';
// To get paths of all mounted `StorageVolumes`
StorageVolumes storageVolumes = StorageVolumes();
List<StorageVolume> storageVolumeList = await storageVolumes.list;
storageVolumeList.forEach((storageVolume) {
print('${storageVolume.name}: ${storageVolume.path}');
});
// Get Storage information
StorageVolume storageVolume = StorageVolume('/sdcard');
int totalSpace = await storageVolume.totalSpace;
int usedSpace = await storageVolume.usedSpace;
int freeSpace = await storageVolume.freeSpace;
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.