Skip to content

So-Kathy/flutter_todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_todo

  1. Please add a Todo button in the BottomNavigationBar. And then create a screen that list out the todos. (You can reference to Posts to do it)

API Method
https://jsonplaceholder.typicode.com/todos?userId=1 GET

Response Example:

[
  {
    "userId": 1,
    "id": 1,
    "title": "delectus aut autem",
    "completed": false
  },
  {
    "userId": 1,
    "id": 2,
    "title": "quis ut nam facilis et officia qui",
    "completed": false
  }
 ]

  1. Please add a + button icon in the top right corner in the AppBar


  1. Please create a screen that can let user to create a todo

API Method
https://jsonplaceholder.typicode.com/todos POST

Request Example:

{
    userId: 1,
    title: 'Hello',
}

Response Example:

{
    "userId": 1,
    "id": 201,
    "title": "Hello",
    "completed": false
}

Bonus
  1. In the Todo list screen, when user press the checkbox button, call api to update completed status and show corresponding UI result of the completed.
    (You don't need to base on the response success update the UI because this api is faked. Just based on the last status of the completed, then show the opposite value the that completed.)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published