尽管我使用的是正确的提供商,但我还是收到了这个错误 The following ProviderNotFoundError was thrown building Pets4allDrawer(dirty我想知道为什么使用Provider.of(context)不起作用,在调用它时找不到它。context) { final <e
我是DashboardPage新手,我尝试在获得用户身份验证后允许我的应用程序迁移到DashboardPage,但我得到了这个错误:无法在此flutter小部件上找到正确的提供商 这是因为您使用的BuildContext不包含您选择的提供程序。这是我的auth_page的代码,在这两种情况下,代码和生物认证必须始终指向DashboardPage (): class AuthPage
由于我将颤振代码更新为空安全,因此在这个小部件上得到了以下错误:import 'package:firebase_corehome: Wrapper(), );}Error: Could not find the correct Provider<MyUserThere are a few common scen