Slide 17
Slide 17 text
@override
Widget build(BuildContext context) {
TodoListContainerState container = TodoListContainer.of(context);
// ϑΟϧλϦϯά͍ͨ͠
switch (container.widget.filterMode) {
case FilterMode.checked:
filteredTodoList = container.getCheckedTodoList();
break;
case FilterMode.unchecked:
filteredTodoList = container.getUncheckedTodoList();
break;
case FilterMode.none:
default:
List todoList = container.getTodoList();
if (todoList != null) {
filteredTodoList = todoList;
}
break;
}
container.addLoadingEndListener(this);
return new Scaffold(
body: new ListView.builder(
padding: const EdgeInsets.all(16.0),
itemCount: filteredTodoList.length,
itemBuilder: (context, i) => new
TodoEntryItem(filteredTodoList[i])),
);
}
ඳըϝιου
ϩδοΫ
ඳը͢Δ8JEHFU