flutter_amplify_helper 0.0.3 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