Last updated:
0 purchases
flutter amplify helper
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();
copied to clipboard
To get the access token from the current user use the method below :
FlutterAmplifyHelper().getToken();
copied to clipboard
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));
copied to clipboard
To enable datastore category
await Get.putAsync<FlutterAmplifyHelper>(
() => FlutterAmplifyHelper().init<ModelProvider>(amplifyConfig: amplifyconfig, modelProvider: ModelProvider.instance,enableDatastore: true));
copied to clipboard
Additional helpful streams :
to listen to auth events use the following stream function :
flutterAmplifyHelper.listenAuthChanges();
copied to clipboard
to listen to Datastore events use the following stream function :
flutterAmplifyHelper.listenDatastoreChanges();
copied to clipboard
Additional information #
All pull requests are welcome
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.