wetransfer 0.3.0+0

WeTransfer for Flutter #

A Flutter package that allows upload and dowload files to Wetransfer.

How to create a new instance #

Create a new instance with :

 WeTransferClient client = await WeTransferClient.create('<api_key>');

Example #

    WeTransferClient client = await WeTransferClient.create('<api_key>');
    Transfer transfer = await client.createTransfer(
        myFiles, "Test transfer.");

    await client.uploadFiles(transfer).forEach((state) =>
        print('${state.file.name} : ${state.type}'));

    String url = await client.finalizeTransfer(transfer);


[0.3.0+0] - 31/10/2019.

  • FileUploadState has now now a timestamp
  • The Transfer class is now detailed
  • WeTransferClient.getTransferInfo now returns a Transfer instead of the url of the Transfer

[0.2.0+1] - 24/10/2019.

  • Added an example
  • Fixed the changelog

[0.2.0] - 24/10/2019.

  • Revamped project structure
  • Deleted the WeTransferClient.completeFilesUpload(transfer) method as it is now done automatically in WeTransferClient.uploadFiles(transfer)

[0.1.1] - 18/10/2019.

  • Fixing packages infos, no code changes

[0.0.1] - 18/10/2019.

  • Initial release.


example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  wetransfer: ^0.3.0+0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:wetransfer/wetransfer.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
http ^0.12.0+2 0.12.0+4
path ^1.6.4 1.6.4
unique_ids ^1.0.10 1.0.10
xml ^3.5.0 3.7.0
Transitive dependencies
async 2.4.0
charcode 1.1.3
collection 1.14.11 1.14.12
convert 2.1.1
flutter 0.0.0
http_parser 3.1.3
meta 1.1.8
pedantic 1.9.0
petitparser 3.0.1
sky_engine 0.0.99
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies