uri_to_file
This project is based on uri_to_file.
1. Installation and Usage
1.1 Installation
Go to the project directory and add the following dependencies in pubspec.yaml:
pubspec.yaml
...
dependencies:
uri_to_file:
git:
url: https://gitcode.com/OpenHarmony-Flutter/fluttertpc_uri_to_file
...
Execute the command
flutter pub get
1.2 Usage
For detailed use cases, please see example
2. Constraints and Limitations
2.1 Compatibility
This document is verified based on the following versions:
- Flutter: 3.22.1-ohos-1.0.3; SDK: 5.0.0(12); IDE: DevEco Studio: 6.0.1.251; ROM: 6.0.0.115 SP16;
- Flutter: 3.27.5-ohos-1.0.1; SDK: 5.0.0(12); IDE: DevEco Studio: 6.0.1.251; ROM: 6.0.0.115 SP16;
- Flutter: 3.35.8-ohos-0.0.2; SDK: 6.0.1(21); IDE: DevEco Studio: 6.0.1.260; ROM: 6.0.0.130 SP15;
3. API
"ohos Support" "yes" means supported; "no" means not supported; "partially" means partially supported.
| Name | Description | Type | Input | Output | ohos Support |
|---|---|---|---|---|---|
| toFile | 将URI转换为文件路径 | function | String | Future | yes |
| clearTemporaryFiles | 清除临时文件 | function | 无 | Future | yes |
4. Known Issues
None
5. Open Source License
This project is licensed under The MIT License, please enjoy and participate in open source freely.