Re-implemented getting tasks with the new seperate endpoint #39

Open
konrad wants to merge 34 commits from feature/task-list into master
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 5f7d59c7ea - Show all commits

View File

@ -77,9 +77,9 @@ class _ListPageState extends State<ListPage> {
// in _loadTasksForPage()?
_loadTasksForPage(_currentPage);
}
return TaskTile(
return index < _tasks.length ? TaskTile(

Please create a custom widget which handles auto loading new tasks and inserting dividers.

Please create a custom widget which handles auto loading new tasks and inserting dividers.
task: _tasks[index],
);
): null;
})
: Center(child: Text('This list is empty.')),
onRefresh: _loadList,