我正在从表中返回行数,并尝试将其用作listview构建器中的itemCount。但是列表视图生成器显示此错误
The argument type 'Future<int>' can't be assigned to the parameter type 'int'
如何解决?
将方法的返回类型更改为Future而不是int。