Supports downloading objects and listing objects in a bucket.
The heavy lifting was done by Amazon Cognito Identity SDK for Dart, this project contains just convenience methods for common use cases.
if you need more requests, you can use this instead to build what you need. If you implement more methods, feel free to open a pull request.
final AwsS3Client s3client = AwsS3Client( region: <Region>, bucket: <Bucket>, accessKey: <AccessKey>, secretKey: <SecretKey>, sessionToken: <Optional: Session Token (if required)> );
final response = await s3client.getObject("your/object/key");
ListBucketResult listBucketResult = await s3client.listObjects(prefix: "dir1/dir2/", delimiter: "/"); print(listBucketResult.toString());
If you want to use a custom http client, use the method
This method returns an object containing the URL and the Authorization headers, which can be
used to build the request with your preferred http client.
A new Flutter project.
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.
Add this to your package's pubspec.yaml file:
dependencies: flutter_aws_s3_client: ^0.1.0
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
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]
We analyzed this package on Jul 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
|Dart SDK||>=2.2.2 <3.0.0|