-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
bloc_library example contains direct dependency between FilteredTodosBloc and TodosBloc. It is directly not recommended in BLoC library documentation. Please fix it.
flutter_architecture_samples/bloc_library/lib/blocs/filtered_todos/filtered_todos_bloc.dart
Lines 12 to 25 in d898d13
| FilteredTodosBloc({required this.todosBloc}) | |
| : super( | |
| todosBloc.state is TodosLoaded | |
| ? FilteredTodosLoaded( | |
| (todosBloc.state as TodosLoaded).todos, | |
| VisibilityFilter.all, | |
| ) | |
| : FilteredTodosLoading(), | |
| ) { | |
| todosSubscription = todosBloc.stream.listen((state) { | |
| if (state is TodosLoaded) { | |
| add(UpdateTodos(state.todos)); | |
| } | |
| }); |
Metadata
Metadata
Assignees
Labels
No labels