0
  1. 当我使用该应用程序实现我自己的 Firebase 时,我收到此错误并且当我单击餐厅时没有显示任何产品?

所以错误是:

NoSuchMethodError(NoSuchMethodError:在 null 上调用了方法“[]”。接收方:null 尝试调用:)

在文件 Restaurant.dart 中。在提供者文件夹中。

并且发生在:

loadSingleRestaurant({String restaurantId}) async{

    final restaurant = await _restaurantServices.getRestaurantById(id: restaurantId);

    notifyListeners();

  }
  1. -- 并且没有发生 2 个错误:

错误 2

这些在 Galaxy s8 设备上运行的颤振中以调试模式显示。如何解决这个问题。非常感谢帮助。

4

0 回答 0