Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

什么时候出flutter 版 #34

Open
jlcool opened this issue Nov 13, 2018 · 16 comments
Open

什么时候出flutter 版 #34

jlcool opened this issue Nov 13, 2018 · 16 comments
Labels
help wanted Extra attention is needed

Comments

@jlcool
Copy link

jlcool commented Nov 13, 2018

什么时候出flutter 版

@luozhang002
Copy link
Collaborator

@jlcool 团队已经有小伙伴开始调研。

@luozhang002 luozhang002 added the help wanted Extra attention is needed label Nov 15, 2018
@Liangqianyong
Copy link

flutter 版本的sdk 出了吗

@luozhang002
Copy link
Collaborator

@Liangqianyong 出一整套的方案的话,成本太高,有个基于postobject的flutter sdk你可以参考下。https://github.com/luozhang002/postflutter-demo

此外网上也有第三方用户开发了一个 flutteross插件,也可以参考下。
https://github.com/jlcool/aliossflutter

@linguitang
Copy link

@luozhang002 其实官方可以根据android和ios的官方sdk,出一个flutter插件就好了

@chenjianjun571
Copy link

官方什么时候出flutter插件库呀?大势所趋,阿里云能不能跟上时代的步伐呀

@Stuazt
Copy link

Stuazt commented Nov 18, 2019

还是没有flutter库啊,https://github.com/jlcool/aliossflutter ,这个不够强壮,感觉作者并没有在生产环境中使用,不然也不会那么多bug。。。作者也好久没维护了。

@jlcool
Copy link
Author

jlcool commented Nov 19, 2019

@luozhang002 官方出一个吧,我都不会原生开发,插件不好维护

@quanzaiyu
Copy link

flutter我试过, 使用 dio 可以很容易地上传到oss, 封装的部分代码如下:

  oss(File file) async {
    var ext = file.path.split('.').last;
    var userId = (await Storage.get('userInfo'))['id'].toString();
    var now = (new DateTime.now()).toString();
    var uuid = new Uuid();
    var filename = uuid.v5(Uuid.NAMESPACE_URL, now + userId);

    // 签名
    FormData data = new FormData.from({
      'Filename': '文件名,随意',
      'key' : "$uploadBaseUrl/$filename.$ext",
      'policy': policyBase64,
      'OSSAccessKeyId': accesskeyId,
      'success_action_status' : '200', //让服务端返回200,不然,默认会返回204
      'signature': signature,
      'file': new UploadFileInfo(file, "imageFileName")
    });

    try {
      Response response = await dio.post(ossPath, data: data);
      var uploadPath = "$ossPath/$uploadBaseUrl/$filename.$ext";
      print(response);
      print("上传成功: $uploadPath");
      return uploadPath;
    } on DioError catch(e) {
      print("上传失败: $e");
    }
  }

@vinurs
Copy link

vinurs commented Jan 13, 2020

闲鱼团队不是一直在跟进flutter技术么?官方出一个应该不难啊

@JohnnyB0Y
Copy link

https://pub.dev/packages/aly_oss 这个是不是官方的?

@debugksir
Copy link

@luozhang002 这么多人提需求,出个flutter sdk吧!

@DingXuefeng
Copy link

+1 求flutter版

4 similar comments
@saviourdog
Copy link

+1 求flutter版

@figureai
Copy link

+1 求flutter版

@ixugo
Copy link

ixugo commented Dec 29, 2022

+1 求flutter版

@hello-nico-chan
Copy link

+1 求flutter版

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests