Skip to content

Commit

Permalink
chore: change outputs to amplifyConfig in flutter gen 2 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 committed Jun 19, 2024
1 parent e914906 commit 2088b91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Future<void> _configureAmplify() async {
// Once Plugins are added, configure Amplify
// Note: Amplify can only be configured once.
try {
await Amplify.configure(outputs);
await Amplify.configure(amplifyConfig);
} on AmplifyAlreadyConfiguredException {
safePrint(
'Tried to reconfigure Amplify; this can occur when your app restarts on Android.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Future<void> main() async {
try {
final api = AmplifyAPI(modelProvider: ModelProvider.instance);
await Amplify.addPlugins([api]);
await Amplify.configure(outputs);
await Amplify.configure(amplifyConfig);
safePrint('Successfully configured Amplify');
} on Exception catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ Future<void> _configureAmplify() async {
await Amplify.addPlugins([auth, storage]);
// call Amplify.configure to use the initialized categories in your app
await Amplify.configure(outputs);
await Amplify.configure(amplifyConfig);
} on Exception catch (e) {
safePrint('An error occurred configuring Amplify: $e');
}
Expand Down

0 comments on commit 2088b91

Please sign in to comment.