fluttertpc_vision_gallery_saver:基于 Flutter 的媒体文件保存插件项目

调用原生接口调用视频与保存文件的功能。

分支4Tags3
文件最后提交记录最后更新时间
10 个月前
3 个月前
10 个月前
1 年前
2 个月前
1 年前
3 个月前
3 个月前
10 个月前
10 个月前
1 年前
3 个月前
30 天前
30 天前
3 个月前
1 年前
2 个月前
3 个月前

vision_gallery_saver

本项目基于 vision_gallery_saver 开发。

1. 安装与使用

1.1 安装方式

进入到工程目录并在 pubspec.yaml 中添加以下依赖:

pubspec.yaml

...

dependencies:
  vision_gallery_saver:
    git:
      url: https://gitcode.com/CPF-Flutter/fluttertpc_vision_gallery_saver.git

...

执行命令

flutter pub get

1.2 使用案例

使用案例详见 example

2. 约束与限制

2.1 兼容性

在以下版本中已测试通过

  1. Flutter: oh-3.27.4-dev; SDK: 5.0.0(12); IDE: DevEco Studio: 6.0.1.251; ROM: 6.0.0.115 SP16;
  2. Flutter: 3.35.7-ohos-0.0.1; SDK: 6.0.2(22); IDE: DevEco Studio: 6.0.2.640; ROM: 6.0.0.130 SP15;

3. API

"ohos Support"列为 yes 表示 ohos 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。

名称 描述 类型 输入 输出 ohos 支持 ohos sdk 版本
saveImage 保存图片 函数 imageBytes: Uint8List,
quality: int,
skipIfExists: bool
Map<String, dynamic> yes 12
saveFile 保存视频文件 函数 file: String,
name: String,
skipIfExists: bool
Map<String, dynamic> yes 12

4. 遗留问题

配置项中不支持的属性:

  • 无遗留问题

5. 开源协议

本项目基于 Apache-2.0,请自由地享受和参与开源。

项目介绍

调用原生接口调用视频与保存文件的功能。

定制我的领域