Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AngeloAvv/disks
A Flutter desktop library able to retrieve the installed devices information
https://github.com/AngeloAvv/disks
cross-platform disk-utility flutter flutter-desktop flutter-linux flutter-macos flutter-plugins flutter-windows
Last synced: 3 months ago
JSON representation
A Flutter desktop library able to retrieve the installed devices information
- Host: GitHub
- URL: https://github.com/AngeloAvv/disks
- Owner: AngeloAvv
- License: mit
- Created: 2022-04-29T15:18:28.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T22:30:11.000Z (4 months ago)
- Last Synced: 2024-11-08T10:12:24.348Z (3 months ago)
- Topics: cross-platform, disk-utility, flutter, flutter-desktop, flutter-linux, flutter-macos, flutter-plugins, flutter-windows
- Language: C++
- Homepage:
- Size: 180 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flutter-desktop - disks_desktop - A Flutter desktop library able to retrieve the installed devices information (Packages)
README
# Disks Desktop
Disks Desktop is Flutter desktop library able to retrieve the installed devices information
[![Pub](https://img.shields.io/pub/v/disks_desktop.svg)](https://pub.dev/packages/disks_desktop)
![Flutter CI](https://github.com/AngeloAvv/disks/workflows/Flutter%20CI/badge.svg)
[![Star on GitHub](https://img.shields.io/github/stars/AngeloAvv/disks.svg?style=flat&logo=github&colorB=deeppink&label=stars)](https://github.com/AngeloAvv/disks)
[![License: MIT](https://img.shields.io/badge/license-MIT-purple.svg)](https://opensource.org/licenses/MIT)If you want to support this project,
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/angeloavv)
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](https://dart.dev/tools/pub/dependencies),
in your [pubspec.yaml](https://dart.dev/tools/pub/pubspec):```yaml
dependencies:
disks_desktop: ^1.0.1
```You can install packages from the command line:
```terminal
flutter pub get
```or simply add it through the command line:
```terminal
flutter pub add disks_desktop
```## 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:
```dart
final repository = DiskRepository();
final disks = await repository.query;
```You can also use it with a FutureBuilder:
```dart
FutureBuilder>(
future: DisksRepository().query,
builder: (context, snapshot) => [...]
),
```## 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