Skip to content
pubscout

minio

3.5.8, released a year ago by an unverified publisher

Unofficial MinIO and S3-compatible object storage client SDK for Dart and Flutter.

WASM-readyUnverified publisher
$ flutter pub add minio
Source repository

What it does

Provides simple APIs to interact with any Amazon S3 compatible object storage server, such as MinIO, AWS S3, or Filebase. Supports bucket operations, object uploads and downloads, presigned URLs, and bucket policies.

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

Use it when

  • You need to upload, download, or manage files in an S3-compatible object storage server or MinIO.
  • You want to generate presigned URLs for direct client uploads or downloads.
  • You need to listen to or manage bucket notifications and policies.

Skip it when

  • You need local device storage like key-value pairs or SQLite databases.
  • You require an official SDK directly maintained by AWS or MinIO.

Strengths

  • Supports a wide range of S3-compatible backends including AWS S3, MinIO, and Filebase.
  • Provides stream-based file upload and download with progress tracking.
  • Supports multiple platforms including Android, iOS, Web, Windows, macOS, and Linux.

Weaknesses

  • It is an unofficial SDK, which may lead to delays in adopting new upstream features.
  • Documentation outside of the README relies heavily on pub.dev documentation links.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
9

Initialize the Minio client with your endpoint, access key, and secret key. For file operations, import 'package:minio/io.dart'.

import 'package:minio/minio.dart';

void main() async {
  final minio = Minio(
    endPoint: 'play.min.io',
    accessKey: 'Q3AM3UQ867SPQQA43P2F',
    secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
  );

  await minio.putObject(
    'mybucket',
    'myobject',
    Stream<Uint8List>.value(Uint8List(1024)),
    onProgress: (bytes) => print('$bytes uploaded'),
  );
}

Alternatives

Packages that do the same job and could replace minio.

Works with

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