disk 0.3.3 copy "disk: ^0.3.3" to clipboard
disk: ^0.3.3 copied to clipboard

PlatformAndroid

A flutter plugin for android to get storage volumes' information.

Disk #

A flutter plugin for android to get storage volumes' information.

Add package from github #

dependencies:
  disk: ^0.3.1

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;



2
likes
120
pub points
46%
popularity

Publisher

verified publisherhextools.0xba1.xyz

A flutter plugin for android to get storage volumes' information.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, flutter, path_provider

More

Packages that depend on disk