pappes / MyMovieSearch

test android app using flutter
GNU General Public License v3.0
1 stars 0 forks source link

Search screens should use BlockProvider and RepositoryProvider to allow for dependency injection for integration tests #69

Open pappes opened 11 months ago

pappes commented 11 months ago

e.g.


  @override
  Widget build(BuildContext context) =>
      RepositoryProvider<BaseMovieRepository>.value(
        value: overrideBlocRepository ?? _defaultBlocRepository,
        child: BlocProvider<SearchBloc>(
          create: (_) => SearchBloc(
              movieRepository:
                  overrideBlocRepository ?? _defaultBlocRepository),
          child: const _MMSearchAppView(),
        ),
      );
}