amazon_s3_cognito 0.1.1 copy "amazon_s3_cognito: ^0.1.1" to clipboard
amazon_s3_cognito: ^0.1.1 copied to clipboard

outdated

A flutter plugin for using Amazon S3 service.The plugin allows user to upload and delete images on amazon s3 cognito.

amazon_s3_cognito #

Amazon S3 plugin for Flutter

Unofficial Amazon S3 plugin written in Dart for Flutter.

The plugin is extension if flutter-amazon-s3 plugin which can be found here https://pub.dev/packages/flutter_amazon_s3. This plugin adds image delete functionality and also it allows user to upload image when region and sub-region are different.

Plugin in maintained by fäm propertiesno-reply@famproperties.com.

Usage #

To use this plugin, add amazon_s3_cognito as a dependency in your pubspec.yaml file.

dependencies:
Use this version pre-android x, for other version we are still experimenting with the code
  amazon_s3_cognito: '^0.1.0' 

Example #

import 'package:amazon_s3_cognito/flutter_amazon_s3.dart';
import 'package:amazon_s3_cognito/aws_region.dart';

String uploadedImageUrl = await FlutterAmazonS3.uploadImage(
          _image.path, BUCKET_NAME, IDENTITY_POOL_ID);
          

//Use the below code to specify the region and sub region for image upload
String uploadedImageUrl = await FlutterAmazonS3.upload(
            _image.path,
            BUCKET_NAME,
            IDENTITY_POOL_ID,
            IMAGE_NAME,
            AwsRegion.US_EAST_1,
            AwsRegion.AP_SOUTHEAST_1)
            
//use below code to delete an image
 String result = FlutterAmazonS3.delete(
            BUCKET_NAME,
            IDENTITY_POOL_ID,
            IMAGE_NAME,
            AwsRegion.US_EAST_1,
            AwsRegion.AP_SOUTHEAST_1)
            
            
        

Installation #

Android #

No configuration required - the plugin should work out of the box.

iOS #

No configuration required - the plugin should work out of the box.

Authors #

IOS and Android Plugins are modified by fäm properties to enable image upload and delete using region and sub-region. 
Android version written by Tony Darko
IOS version written by Vladislav Blago
29
likes
0
pub points
76%
popularity

Publisher

unverified uploader

A flutter plugin for using Amazon S3 service.The plugin allows user to upload and delete images on amazon s3 cognito.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on amazon_s3_cognito