我正在从防火墙查询一些文档,等待结果,所以函数必须是一个未来,但我需要它是一个List,而不是一个Future<List>。<String> getOtherMonths() { DateTime date = DateTime.now();;
BarChartModel(this.month, this
我正在尝试使用Flutter & Firebase构建一个聊天应用程序,我从Github获取了以下代码,并在我的项目中使用了它。在Flutter的早期版本上,它是有效的,在2.0上,它显示了以下错误:The argument type 'StreamTransformer<dynamic, dynamic>' can't beassigned to the parameter type 'StreamT
nagar", ]我想在下拉列表中传递这个json数据,feild.The DropDownFeild是一个第三方Widget,它将数据作为其属性中称为"items“的字符串列表,但是我面临这个错误。<dynamic>' is not a subtype of type 'List<String>'
The relevant error-causing widget was
我正在做一个flutter项目,我将一个对象数组(List>数组)从我的块传递给流构建器。如果我打印对象,它打印得很好,但是当我试图在DropdownMenuItem中映射它们时,它抛出了前面提到的错误。因此,如果我在类中创建一个相同格式的伪数组并访问它,我就不会得到错误。color: Theme.of(context).primaryColor,
child: new DropdownButton<Stringite
我从firebase中获取数据并使用fromJson构造函数进行转换,但它抛出了错误。导致的问题是模型中的类别列表,我已经执行了强制转换方法,但它仍然不起作用。请帮帮我,我被困在这里2天了。<dynamic>' is not a subtype of type 'List<String>'
FutureBuilderfirestore获取数据,并将其
1) type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<Map<String, dynamic>>'
我的代码.List<Map<String, dynamic>> arrayOfProductList = List</em