我卡在颤动闪屏错误中,如下所示: E/flutter ( 5472): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: NoSuchMethodError: The method 'findAncestorStateOfType' was called on null.E/flutter ( 5472): Receiver: null</
通过该应用程序,我从数据库中进行查询,以获取一些以前存储的数据。我尝试将id存储在myPreferences中,但得到的错误如下: E/flutter (29170): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] UnhandledException: NoSuchMethodError: The method 'setString' was called on null.E
你好,我是Flutter的初学者,这里是问题-我试图建立一个注册表单与验证和‘注册’按钮,它必须显示数据是否有效,但有'NoSuchMethodError:方法‘验证’被调用在null‘时,我按下这个’return "email can't be less than 2 letter"; return nullreturn "Password can't
我成功地在firebase中注册了一个新用户,但无法在firestore中创建该用户的文档。我得到以下错误 [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: NoSuchMethodError: The method'[]' was called on null..map((snapshot) => UserModel.fromMap(snapshot