flutter_qiniu_sdk 0.1.0+8 copy "flutter_qiniu_sdk: ^0.1.0+8" to clipboard
flutter_qiniu_sdk: ^0.1.0+8 copied to clipboard

discontinued

A flutter plugin for Qiniu object storage sdk. Support the flexible configuration, progress and complete the callback.

Qiniu SDK plugin for Flutter #

pub package

A flutter plugin for Qiniu object storage sdk. Support the flexible configuration, progress and complete the callback.

Note: This plugin is still under development, and some APIs might not be available yet. Feedback welcome and Pull Requests are most welcome!

Support platform #

  • Android
  • iOS

Dependency #

  • Android: qiniu-android-sdk:7.3.15
  • iOS:

Installation #

First, add flutter_qiniu_sdk as a dependency in your pubspec.yaml file.

Example #

  1. Configuration
import 'package:flutter_qiniu_sdk/flutter_qiniu_sdk.dart';

var conf = ConfigBuilder()
  ..enableRecord = true // enable breakpoint resume
  ..zone = Zone.autoZone // select zone service
  ..useHttps = true; // enable https

Qiniu.config(conf.build);
  1. Async upload file
var cancelable = Qiniu.put(key, token, filepath, onProgress: (String key, double percent) {
  debugPrint("onProgress: $key, $percent");
}, onComplete: (String key, ResponseInfo info, String response) {
  debugPrint("onComplete: $key, $info, $response");
});

// cancel
cancelable.cancel();
  1. Sync upload file
Qiniu.syncPut(key, token, filepath, onProgress: (String key, double percent) {
  debugPrint("onProgress: $key, $percent");
}, onComplete: (String key, ResponseInfo info, String response) {
  debugPrint("onComplete: $key, $info, $response");
});
  1. Cancel upload task
Qiniu.cancel(key);
1
likes
40
pub points
14%
popularity

Publisher

verified publishertenon.dev

A flutter plugin for Qiniu object storage sdk. Support the flexible configuration, progress and complete the callback.

Repository (GitHub)
View/report issues

License

Apache-2.0, BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_qiniu_sdk