disks_desktop 1.0.1 copy "disks_desktop: ^1.0.1" to clipboard
disks_desktop: ^1.0.1 copied to clipboard

A Flutter desktop library able to retrieve the installed devices information

Disks Desktop #

Disks logo

Disks Desktop is Flutter desktop library able to retrieve the installed devices information

Pub Flutter CI Star on GitHub License: MIT

If you want to support this project,

"Buy Me A Coffee"

With Disks Desktop you can get access to disks' information like:

  • block size
  • bus type
  • bus version
  • description
  • device name
  • device path
  • logical block size
  • available mountpoints
  • disk size
  • partition table type
  • is in error
  • is a card
  • is read only
  • is removable
  • is scsi
  • is system
  • is uas
  • is usb
  • is virtual
  • is raw

Installation #

In general, put it under dependencies, in your pubspec.yaml:

dependencies:
  disks_desktop: ^1.0.1
copied to clipboard

You can install packages from the command line:

flutter pub get
copied to clipboard

or simply add it through the command line:

flutter pub add disks_desktop
copied to clipboard

Usage #

To get the list of the available drives with their details, simply create an instance of a Disk Repository, and then invoke the query getter.

Example:

final repository = DiskRepository();
final disks = await repository.query;
copied to clipboard

You can also use it with a FutureBuilder:

FutureBuilder<List<Disk>>(
  future: DisksRepository().query,
  builder: (context, snapshot) => [...]
),
copied to clipboard

License #

Disks Desktop is available under the MIT license. See the LICENSE file for more info. drivelist.cpp, drivelist.hpp, list.cpp and list.hpp are available under the Apache 2.0 license and belongs to balena.io

Additional information #

Disks icon created by Freepik - Flaticon

15
likes
140
points
183
downloads

Publisher

verified publisherangelocassano.it

Weekly Downloads

2024.10.02 - 2025.04.16

A Flutter desktop library able to retrieve the installed devices information

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable, flutter, path

More

Packages that depend on disks_desktop