当我在项目中使用依赖注入时,我的小部件测试失败。 我的错误如下: Testing started at 10:07 AM ...C:\src\flutter\bin\flutter.bat --no-color test --machine --plain-name "Exist FloatingActionButton" testfollowing assertion was thrown building _BodyBuilder:
No type AnnouncementBloc is registered ins
在我的项目中,我使用带的叠层体系结构。在单元测试中,它运行得非常好,但是当涉及到Widget/Integration测试时,我在一开始就得到了一个错误。我的代码:import 'package:my_project/ui/start_up/startup_viewmodel.dart(Did you accidentally d