flutter_amplify_helper 0.0.3 copy "flutter_amplify_helper: ^0.0.3" to clipboard
flutter_amplify_helper: ^0.0.3 copied to clipboard

Amplify helper service to speed up the developement using amazon web services

a small class helper (Getx service) that facilitate and speed up the development mobile apps with amazon web services

Features #

  • To get the sub id from the current user :
FlutterAmplifyHelper().getSub();
  • To get the access token from the current user use the method below :
FlutterAmplifyHelper().getToken();

Getting started #

  • To get started with flutter aws please follow the official documents from the link below :

https://docs.amplify.aws/start/q/integration/flutter/

Usage #

  • Install the package and import the file FlutterAmplifyHelper
  await Get.putAsync<FlutterAmplifyHelper>(
      () => FlutterAmplifyHelper().init<ModelProvider>(amplifyConfig: amplifyconfig, modelProvider: ModelProvider.instance));
  • To enable datastore category
  await Get.putAsync<FlutterAmplifyHelper>(
      () => FlutterAmplifyHelper().init<ModelProvider>(amplifyConfig: amplifyconfig, modelProvider: ModelProvider.instance,enableDatastore: true));
  • Additional helpful streams :

to listen to auth events use the following stream function :

  flutterAmplifyHelper.listenAuthChanges();

to listen to Datastore events use the following stream function :

  flutterAmplifyHelper.listenDatastoreChanges();

Additional information #

All pull requests are welcome

1
likes
110
pub points
0%
popularity

Publisher

unverified uploader

Amplify helper service to speed up the developement using amazon web services

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

amplify_analytics_pinpoint, amplify_api, amplify_auth_cognito, amplify_datastore, amplify_flutter, amplify_storage_s3, flutter, get

More

Packages that depend on flutter_amplify_helper