flutter_aws_s3_client 0.6.0 copy "flutter_aws_s3_client: ^0.6.0" to clipboard
flutter_aws_s3_client: ^0.6.0 copied to clipboard

A simple, unofficial AWS S3 client in dart. Supports downloading objects and listing objects in a bucket.

example/lib/main.dart

import 'package:flutter_aws_s3_client/flutter_aws_s3_client.dart';

void main() async {
  const region = "eu-central-1";
  const bucketId = "yourBucketId";
  final AwsS3Client s3client = AwsS3Client(
      region: region,
      host: "s3.$region.amazonaws.com",
      bucketId: bucketId,
      accessKey: "<your access key>",
      secretKey: "<your secret key>");

  final listBucketResult =
      await s3client.listObjects(prefix: "dir/dir2/", delimiter: "/");
  print(listBucketResult.toString());

  final response = await s3client.getObject("yourObjectId");
  print(response.body.toString());
}
35
likes
100
pub points
88%
popularity

Publisher

unverified uploader

A simple, unofficial AWS S3 client in dart. Supports downloading objects and listing objects in a bucket.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

amazon_cognito_identity_dart_2, built_collection, built_value, http, xml2json

More

Packages that depend on flutter_aws_s3_client