DEV Community

loading...

flutter, itemCount, Listview

Joseph
・1 min read

How can I address this problem ?

child: FutureBuilder(
initialData: [],
future: _dbHelper.getTasks(),
builder: (context, snapshot) {
return ScrollConfiguration(
behavior: NoGlowBehavior(),
child: ListView.builder(
itemCount: snapshot.data.later,
itemBuilder: (context, index) {
return TaskCardWidget(
title: snapshot.data[index].title,
);

its throwing back an error

Discussion (0)