flutter_publitio 0.0.1 copy "flutter_publitio: ^0.0.1" to clipboard
flutter_publitio: ^0.0.1 copied to clipboard

discontinued
outdated

Publit.io plugin for Flutter.

Publit.io plugin for Flutter #

A Flutter plugin to use the Publit.io API.

Getting started #

See the example directory for a complete sample app showing video upload and playback. Works on iOS and Android.

To run the example app you'll need credentials:

  1. Create a free account at Publit.io, and get your credentials from the dashboard.
  2. Put your API key and secret in example/ios/Runner/Info.plist, and in example/lib/main.dart (replace the text "YOUR_API_KEY" and "YOUR_API_SECRET" respectively)
  3. Run the example using flutter run

Usage #

Add flutter_publitio as a dependency in your pubspec.yaml.

Configure #

await FlutterPublitio.configure("YOUR_API_KEY", "YOUR_API_SECRET");

Upload #

final uploadOptions = {
    "privacy": "1", // Marks file as publicly accessible
    "option_download": "1", // Can be downloaded by anyone
    "option_transform": "1" // Url transforms enabled
};
final response = await FlutterPublitio.uploadFile("file path", uploadOptions);

print(response["url_preview"]);

Features #

This plugin currently supports the uploadFile function. If you need more functions, please let me know by opening an issue (or make a PR 😜)

5
likes
0
pub points
11%
popularity

Publisher

unverified uploader

Publit.io plugin for Flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_publitio