Skip to content

Commit

Permalink
Update index.mdx
Browse files Browse the repository at this point in the history
added import statements for amplify api and model provider
  • Loading branch information
networkandcode authored Jan 1, 2025
1 parent 102741e commit 891a80d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/[platform]/start/quickstart/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,14 @@ dependencies:
```


After adding the dependencies, update the `_configureAmplify` method in your `main.dart` file to use the Amplify API:
After adding the dependencies, import the dependency and the model provider at the top of main.dart.

```
import 'package:amplify_api/amplify_api.dart';
import 'models/ModelProvider.dart';
```

And then update the `_configureAmplify` method in your `main.dart` file to use the Amplify API:

```dart title="main.dart"
Future<void> _configureAmplify() async {
Expand Down

0 comments on commit 891a80d

Please sign in to comment.