( builder: (context, AsyncSnapshot<QuerySnapshotchildCount: snapshot.data.docs.length, ); ],} 捕获的异常: flutter: The following NoSuchMethodError was thrown building
我在Flutter应用程序上获得了关注代码。我正在编写食谱应用程序。每当我调试它时,第一次快照都会返回null。但是第二次快照返回了正确的数据。当我的"malzemelerleAra“类运行时,"malzemeler”字段没有获得数据并返回空异常。═════════════════════════════════
The following NoSuchMethodError was thrown building StreamBuilder<QuerySnapshot<
.snapshots(), AsyncSnapshot<QuerySnapshotI/flutter ( 7320): The following assertion was thrown building StreamBuilder<QuerySnapshot>(dirty, state:
I/flutter ( 7320): _Stream
我之所以说不稳定,是因为每次我在我的应用程序中转到另一个导航时,我都会返回到我输出数据的导航。它首先显示红色背景,然后在一百万秒内显示数据。有人知道怎么解决这个问题吗?我对flutter / android是个新手。请帮帮忙。
对于红色背景,它在终端上显示此内容,并输出我正在获取的数据。The following NoSuchMethodError was thrown building StreamBuilder<QuerySnapshot>(dirty, state: _StreamBuilderBaseState