Skip to content
pubscout

tus_client_dart

2.5.0, released 3 years ago by aquiles.dev

A Dart client for resumable file uploads using the tus protocol.

$ flutter pub add tus_client_dart
Source repository

What it does

Allows pausing, resuming, and uploading files in chunks over the tus protocol. It supports persistent stores to recover uploads after app restarts.

AI-written summary of version 2.5.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to upload large files reliably with pause and resume capabilities.
  • Your backend server implements the tus resumable upload protocol.

Skip it when

  • Your backend does not support the tus protocol.
  • You only need standard simple HTTP file uploads without resumability.

Strengths

  • Supports resumable uploads and pause/resume functionality.
  • Persistent URL stores allow recovery across app restarts.
  • Configurable chunk sizes and retry mechanisms.

Weaknesses

  • Requires a server that supports the tus protocol.
  • Limited to tus protocol specifications.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
3

Not documented

final client = TusClient(Uri.parse("https://master.tus.io/files/"), file, store: TusMemoryStore());
await client.upload(
  onComplete: () {
    print("Complete!");
  },
);

Alternatives

Packages that do the same job and could replace tus_client_dart.

  • dio

    If you want a full-featured HTTP client with built-in interceptors and cancellation tokens instead of a dedicated tus client.

Works with

Packages commonly used together with tus_client_dart: ones it builds on, ones built on it, and its own family.