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

outdated

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:
    git:
      url: git://github.com/0xba1/disk
      ref: main

Example #

    import 'package:disk/disk.dart';
    
    String path = "/sdcard/";
    int totalSpace = Disk.getTotalBytes(path);
    int freeSpace = Disk.getUsedBytes(path);
    int usedSpace = totalSpace - freeSpace;
    
    // To get paths of all mounted `StorageVolumes`
    
    List<String> storageVolumePaths = Disk.getStorageVolumePaths();
    
    for storageVolumePath in storageVolumePaths {
        print("storageVolumePath");
    }
    
    
3
likes
0
pub points
56%
popularity

Publisher

verified publisherhextools.0xba1.xyz

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, path_provider

More

Packages that depend on disk