Flutter——常见报错处理

1.RepositoryProvider.of() called with a context that does not contain a repository of type VideoCourseListNewRepository.

        No ancestor could be found starting from the context that was passed to RepositoryProvider.of<VideoCourseListNewRepository>().

        This can happen if the context you used comes from a widget above the RepositoryProvider.

        The context used was: MainTabDiscovery(dirty)

未初始化,需要在main.dart中初始化

 

posted on 2020-11-10 11:09  在一起的浅蓝色  阅读(129)  评论(0编辑  收藏  举报

导航