我调用API,并希望用FutureBuilder和Provider来显示数据,但是我得到了错误Type 'List<dynamic>' is not a subtype of type 'FutureOr<List<RideData>>',我不知道我做错了什么。守则如下: Future<List<RideData>> getRides() async {
final respons
当我按下按钮时,它会让我屏幕上显示api中的数据。flutter: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'FutureOr<List<class ChapterModel {
ChapterModel({this.chapters
我需要你的帮助。我和CheckboxListTile有一份清单。如果我选中或取消选中某个项目,列表将重新加载。所以我用AsyncMemoizer试了试。现在返回以下错误:'Future<dynamic> is not a subtype of type Future<List<Status>>' 也许你有其他想法,因为我可以用不同的方式解决列表中的问题final response =
导致的问题是模型中的类别列表,我已经执行了强制转换方法,但它仍然不起作用。请帮帮我,我被困在这里2天了。<dynamic>' is not a subtype of type 'List<String>'
FutureBuilder/src/widgets/async.dart:773:55)
#3 StatefulElement.build (