Tutorial

Set up fullstack project

Set up your application

Create a new Flutter application

Create a new project using Flutter CLI:

flutter create amplified_todo

flutter create amplified_todo

Add Amplify to your application

Amplify for Flutter is distributed via pub.dev.

  1. From your project root directory, find and modify pubspec.yaml and add the Amplify plugins to the project dependencies.

    environment: sdk: ">=2.11.0 <3.0.0" dependencies: flutter: sdk: flutter amplify_flutter: <1.0.0 amplify_datastore: <1.0.0

    environment: sdk: ">=2.11.0 <3.0.0" dependencies: flutter: sdk: flutter amplify_flutter: <1.0.0 amplify_datastore: <1.0.0
  2. Install the dependencies by running the following command. Depending on your development environment, you may perform this step via your IDE (or it may even be performed for you automatically).

    flutter pub get

    flutter pub get

Update target iOS platform

From your project root, navigate to the ios/ directory and modify the Podfile using a text editor of your choice and update the target iOS platform to 13.0 or higher.

platform :ios, '13.0'

platform :ios, '13.0'

Update target Android SDK version

From your project root, navigate to the android/app/ directory and modify build.gradle using a text editor of your choice and update the target Android SDK version to 21 or higher:

minSdkVersion 21

minSdkVersion 21

You are ready to start building with Amplify! 🎉

Previous Page
previous

Prerequisites

next

Generate model files

Next Page
Discord Logo
Amplify open source, documentation and community are supported by Amazon Web Services © 2020, Amazon Web Services, Inc. and its affiliates. All rights reserved. View the site terms and privacy policy.
    Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.