pikvn_client 0.0.1 icon indicating copy to clipboard operation
pikvn_client: ^0.0.1 copied to clipboard

A library to upload photos to https://2.pik.vn

A library to upload image to https://2.pik.vn.

Usage #

  1. Install package

Add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  pikvn_client: ^0.0.1 // Or the latest version
  1. Usage
import 'dart:io';

import 'package:pikvn_client/pikvn_client.dart';

void main() async {
  final client = PikVnClient();
  final imageFile = File('test/data/test.jpeg');
  final uploadedUrl = await client.uploadImage(imageFile);

  print('Uploaded url: $uploadedUrl');
  //Uploaded: https://2.pik.vn/20214bfff7a7-9a44-46f8-950f-56e1577f6f56.jpg
}
1
likes
70
pub points
2%
popularity

A library to upload photos to https://2.pik.vn

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

dio, image

More

Packages that depend on pikvn_client