I just got an error. It says :
> The name 'Task' isn't a type so it can't be used as a type argument.
>
> Try correcting the name to an existing type, or defining a type named
> 'Task'.
Here's the snippet code :
Expanded(
child: FutureBuilder(
initialData: [],
future: _dbHelper.getTasks(),
builder: (context, AsyncSnapshot<List<Task>> snapshot) {
return ScrollConfiguration(
behavior: NoGlowBehaviour(),
child: ListView.builder(
itemCount: snapshot.data!.length,
itemBuilder: (context, index) {
return GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Taskpage(),
),
);
},
child: TaskCardWidget(
title: snapshot.data![index].title,
),
);
},
),
);
},
),
),
Here's the snippet code Picture :

Here's my full code: https://github.com/kisekifrans/todo_furans
If I imported the task library, more errors showed up.
Please help me out with this, and have a great day!