我不明白为什么我不能打印列表中的元素。并且总是返回"type 'List‘is not a subtype of type 'List’of 'functionresult'“ import 'package:flutter/material.dartI/flutter (13445): items[i]
I/chatty (13445):
我想为同一个元素创建radiotilelist两次,所以我使用for循环来显示radiotilelist,所以我使用list元素来区分graoupvalue,但是它出现了这个问题,说类型'int‘不是'functionresult’的类型'List‘的子类型。createState() => _CustomDetail();
class _CustomDe
我想要一张能显示上周数据的图表。因此,我使用bezier_chart。一切正常,但我希望显示的数据在一个列表中。错误是:type 'List<dynamic>' is not a subtype of type 'List<DataPoint<DateTime>>' of 'functionresult'。有没有人知道这个问题的解决方案?这是我在Bezie
导致的问题是模型中的类别列表,我已经执行了强制转换方法,但它仍然不起作用。请帮帮我,我被困在这里2天了。<dynamic>' is not a subtype of type 'List<String>'
FutureBuilder/src/widgets/async.dart:773:55)
#3 StatefulElement.build (
我刚开始使用Flutter编写代码,现在我正在尝试从restapi获取数据。我在debug中得到了这个错误类型'list<dynamic>' is not a subtype of type 'string' ? 有什么解决方案吗?apiservice: Future<List<Petani>> getDafPet() async {
final response = await client.get("http
在这里,我试图让一个未来的列表视图构建器,得到一个错误消息:_TypeError (类型'List‘不是类型’Map‘的子类型)颤动。我需要在列表视图中获取post中的所有数据。使用JSON到dart转换器quicktype.io创建的模型类Future<Posts> getPosts() async { final response =;
String p