open_filex
This project is based on open_filex.
1. Installation and Usage
1.1 Installation
Go to the project directory and add the following dependencies in pubspec.yaml
pubspec.yaml
...
dependencies:
open_filex:
git:
url: https://gitcode.com/openharmony-sig/flutter_native_image.git
...
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.3; SDK: 5.0.0(12); IDE: DevEco Studio: 5.1.0.828; ROM: 5.1.0.130 SP8;
- Flutter: 3.22.1-ohos-1.0.3; SDK: 5.0.0(12); IDE: DevEco Studio: 5.1.0.828; ROM: 5.1.0.130 SP8;
3. API
[!TIP] 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 | Description | Type | Input | Output | ohos Support |
|---|---|---|---|---|---|
| open | Opening a file | function | String filePath,{String? type, String? uti} | Future | yes |
4. Properties
[!TIP] 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 | Description | Type | Input | Output | ohos Support |
|---|---|---|---|---|---|
| fileName | Path to the file to be opened | String | / | / | yes |
| type | MIME type hint for the file | String | / | / | yes |
| uti | Uniform Type Identifier | String | / | / | yes |
5. Known Issues
6. Others
7. License
This project is licensed under The BSD-3-Clause License.