用户可通过该项目获取设备磁盘空间信息,包括总磁盘空间、可用磁盘空间及指定路径可用空间,支持 OpenHarmony 平台,提供跨平台一致的使用方法,已适配相关 Flutter 和 SDK 版本。【此简介由AI生成】
Access rate limit exceeded. Please log in to continue.
disk_space_plus
This project is based on disk_space_plus@0.2.3.
1. Installation and Usage
1.1 Installation
Go to the project directory and add the following dependencies in pubspec.yaml
pubspec.yaml
dependencies:
disk_space_plus:
git:
url: https://gitcode.com/openharmony-sig/fluttertpc_disk_space_plus.git
...
dev_dependencies:
disk_space_plus_ohos:
git:
url: https://gitcode.com/openharmony-sig/fluttertpc_disk_space_plus.git
path: "ohos"
Execute Command
flutter pub get
1.2 Usage
For use cases ohos/example
2. Constraints
2.1 Compatibility
This document is verified based on the following versions:
- Flutter: 3.7.12-ohos-1.1.1; SDK: 5.0.0(12); IDE: DevEco Studio: 5.0.13.200; ROM: 5.1.0.120 SP3;
3. API
If the value of **ohos Support** is **yes**, it means that the ohos platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | return | Description | Type | ohos Support |
|---|---|---|---|---|
| platformVersion() | Future<String?> | platform Version | function | yes |
| getFreeDiskSpace() | Future<double?> | get Free Disk Space | function | yes |
| getTotalDiskSpace() | Future<double?> | get Total Disk Space | function | yes |
| getFreeDiskSpaceForPath(String path) | Future<double?> | get Free Disk Space For Path | function | yes |
4. Known Issues
not
5. Others
6. License
This project is licensed under MIT License .
Template version: v0.0.1
Introduction
用户可通过该项目获取设备磁盘空间信息,包括总磁盘空间、可用磁盘空间及指定路径可用空间,支持 OpenHarmony 平台,提供跨平台一致的使用方法,已适配相关 Flutter 和 SDK 版本。【此简介由AI生成】
Customize your domain