[EN] | RU
disk_space_plus_aurora
Original Disk Space Plus README
Disk Space Plus allows you to retrieve information about the Aurora OS device’s disk space.
The plugin can be used in applications to display information about the available and total disk space on the device.
Features
- Get the free disk space in megabytes;
- Get the total disk space in megabytes;
- Get the free disk space in megabytes for a specified path;
Quick Start
DiskSpacePlus diskSpacePlus = DiskSpacePlus();
await diskSpacePlus.getFreeDiskSpace; // Returns the free disk space in megabytes
await diskSpacePlus.getTotalDiskSpace; // Returns the total disk space in megabytes
await diskSpacePlus.getFreeDiskSpaceForPath(path); // Returns the free disk space in megabytes for the specified path
Contents
Installation and build
In pubspec.yaml
, specify the following dependencies:
dependencies:
disk_space_plus: ^0.2.6
disk_space_plus_aurora:
url: https://developer.auroraos.ru/flutter/flutter-community-plugins/disk_space_plus_aurora
In the desktop configuration file, specify permission to access user directories and device information:
Permissions=UserDirs;DeviceInfo
In the .spec file for aurora/rpm, the following build dependency should be specified:
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
Compatibility
The plugin is compatible with Flutter 3.29.2, and Aurora OS 5.0.0 and higher.
Usage rules and contributing
The project’s source code is provided under the license, which allows its use in third-party applications.
If you want to contribute to the project, please read the Contributor Agreement.
If you plan to submit your source code for inclusion in the project, you will need to accept the CLA terms.
Information about contributors is available in the AUTHORS file.
The Code of Conduct is the current set of rules of Open Mobile Platform, outlining expectations for interaction between community members during communication and collaboration on projects.