-
Notifications
You must be signed in to change notification settings - Fork 99
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
Comments
@jlcool 团队已经有小伙伴开始调研。 |
flutter 版本的sdk 出了吗 |
@Liangqianyong 出一整套的方案的话,成本太高,有个基于postobject的flutter sdk你可以参考下。https://github.com/luozhang002/postflutter-demo 此外网上也有第三方用户开发了一个 flutteross插件,也可以参考下。 |
@luozhang002 其实官方可以根据android和ios的官方sdk,出一个flutter插件就好了 |
官方什么时候出flutter插件库呀?大势所趋,阿里云能不能跟上时代的步伐呀 |
还是没有flutter库啊,https://github.com/jlcool/aliossflutter ,这个不够强壮,感觉作者并没有在生产环境中使用,不然也不会那么多bug。。。作者也好久没维护了。 |
@luozhang002 官方出一个吧,我都不会原生开发,插件不好维护 |
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");
}
} |
闲鱼团队不是一直在跟进flutter技术么?官方出一个应该不难啊 |
https://pub.dev/packages/aly_oss 这个是不是官方的? |
@luozhang002 这么多人提需求,出个flutter sdk吧! |
+1 求flutter版 |
4 similar comments
+1 求flutter版 |
+1 求flutter版 |
+1 求flutter版 |
+1 求flutter版 |
什么时候出flutter 版
The text was updated successfully, but these errors were encountered: