taskListUI method

dynamic taskListUI(
  1. List<String> tasks,
  2. int count
)

Implementation

Widget taskListUI(List<String> tasks, int count) {
  return ListView.builder(
    shrinkWrap: true,
    itemCount: count,
    padding: EdgeInsets.zero,
    physics: const NeverScrollableScrollPhysics(),
    itemBuilder: (context, index) => TaskListItemCard(
      taskListId: tasks[index],
      initiallyExpanded: false,
    ),
  );
}