Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Gen 2 Amplify Data for Flutter #7213

Merged
merged 9 commits into from
Apr 16, 2024

Conversation

renebrandel
Copy link
Contributor

Description of changes:

  • Added Amplify Gen 2 "Set up Amplify Data" guide for FLutter

Related GitHub issue #, if available:

Instructions

If this PR should not be merged upon approval for any reason, please submit as a DRAFT

Which product(s) are affected by this PR (if applicable)?

  • amplify-cli
  • amplify-ui
  • amplify-studio
  • amplify-hosting
  • amplify-libraries

Which platform(s) are affected by this PR (if applicable)?

  • JS
  • Swift
  • Android
  • Flutter
  • React Native

Please add the product(s)/platform(s) affected to the PR title

Checks

  • Does this PR conform to the styleguide?

  • Does this PR include filetypes other than markdown or images? Please add or update unit tests accordingly.

  • Are any files being deleted with this PR? If so, have the needed redirects been created?

  • Are all links in MDX files using the MDX link syntax rather than HTML link syntax?

    ref: MDX: [link](https://docs.amplify.aws/)
    HTML: <a href="https://docs.amplify.aws/">link</a>

When this PR is ready to merge, please check the box below

  • Ready to merge

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@renebrandel renebrandel requested a review from a team as a code owner April 15, 2024 22:03
swaminator
swaminator previously approved these changes Apr 15, 2024
@renebrandel renebrandel enabled auto-merge (squash) April 15, 2024 22:21
Copy link
Member

@salihgueler salihgueler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, some comments to address details. We can merge after addressing them.

Finally, let's generate the GraphQL client code for your Flutter application. Amplify Data uses GraphQL under the hood to make query, mutation, and subscription requests. The generated GraphQL client code helps you to author fully-typed API requests without needing to hand-author GraphQL requests and manually map them to Dart code.

```bash title="Terminal" showLineNumbers={false}
npx amplify generate graphql-client-code --format modelgen --model-target dart --out <path_to_flutter_project>/lib/models
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should generate the client code before the configuration.

Co-authored-by: Muhammed Salih Guler <muhammedsalihguler@gmail.com>
renebrandel and others added 6 commits April 16, 2024 07:06
Co-authored-by: Muhammed Salih Guler <muhammedsalihguler@gmail.com>
Co-authored-by: Muhammed Salih Guler <muhammedsalihguler@gmail.com>
Co-authored-by: Muhammed Salih Guler <muhammedsalihguler@gmail.com>
Co-authored-by: Muhammed Salih Guler <muhammedsalihguler@gmail.com>
…lify/docs into renbran/setup-data-gen-2-flutter
@renebrandel renebrandel merged commit 5f91177 into next-release/main Apr 16, 2024
5 checks passed
@renebrandel renebrandel deleted the renbran/setup-data-gen-2-flutter branch April 16, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants