尽管我在模型和firebase中使用了字符串,但每次登录时,我都会收到错误消息"type null is not a subtype of type string“。有谁可以帮我?这是我的home_page.dart const HomePage({Key?(this.error); List<Object> get props => [error];tata_usaha_mod
我在用户登录时创建文档,在创建文档之后,我将转到另一个应该读取文档数据的页面。该错误仅在第一次创建文档时发生,稍后当用户注销并重新登录时,文档存在,并且我继续流到读取流中数据的相同点。第一次读取文档并在控制台中弹出错误时,它还会在设备上显示一段明显的时间,然后消失。>>>#8f55f):
type 'Null' is not a subtype of type 'Map<String, dynamic>' in typ
我跟着一个video tutorial做了一个显示不同鸡尾酒以及如何调制的应用程序,但最终我遇到了一个我不知道如何解决的错误。我查了一下错误,但找不到是什么原因造成的。这是我得到的错误; > Unhandled Exception: type 'Null' is not a subtype of type 'String' 我在我的searchpage.dart上看到这个错误,代码如下: import 'packa
我刚开始使用Flutter编写代码,现在我正在尝试从restapi获取数据。我在debug中得到了这个错误类型'list<dynamic>' is not a subtype of type 'string' ? 有什么解决方案吗?apiservice: Future<List<Petani>> getDafPet() async {
final response = await client.get("http
我正在尝试使用flutter的FutureBuilder,并将http.get()作为未来的参数,如下所示: child: FutureBuilder(
future: http.get(Response>(dirty, state: _FutureBuilderState<Response>#0caa6): type 'Response' is not a subtype of type 'String' 据我所知,Futu
我的应用程序昨天运行得很好,它在Timeline页面上正确地显示了帖子。但今天,当我再次打开项目并想继续处理它时,当我运行Debug应用程序时,它在Timeline页面上生成了一个错误:"type int is not a subtype of type String“。这是我的Timeline.dart文件: import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter