Flutter Amplify ToDo Demo App

This demo project demonstrates the use of AWS Amplify to create a serverless ToDo app with Flutter.

Getting Started

Note: If not described otherwise, execute commands in the project root folder.

Prerequisites

Install following tools:

Create an AWS account (in case you do not already have one)

Configure Amplify CLI

  • Install CLI via npm install -g @aws-amplify/cli
  • Configure CLI with your AWS profile via amplify configure
  • Initialize Amplify in this project via amplify init (use the AWS profile configured in the previous step)

Configure Amplify Auth

Execute amplify add auth with following configuration:

 Do you want to use the default authentication and security configuration? 
 Default configuration
 
 How do you want users to be able to sign in? 
 Username
 
 Do you want to configure advanced settings? 
 No, I am done.

Push your changes using amplify push.

Configure Amplify DataStore

Execute amplify add api with following configuration:

Select from one of the below mentioned services: 
GraphQL

Here is the GraphQL API that we will create. Select a setting to edit or continue (Use arrow keys)
Name: flutteramplifytodo 
Authorization modes: API key (default, expiration time: 365 days from now) 
Conflict detection (required for DataStore): Enabled 
Conflict resolution strategy: Auto Merge 

Choose a schema template: 
Single object with fields (e.g., “Todo” with ID, name, description)

Push your changes using amplify push.

GitHub

View Github