Skip to content

Commit

Permalink
Merge pull request #36 from n-bernat/remove-provider-dependency
Browse files Browse the repository at this point in the history
Remove direct dependency on `provider`
  • Loading branch information
n-bernat authored Oct 29, 2024
2 parents 4bd3450 + 62379dc commit 08c1570
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/bloc_presentation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.1

- Removed dependency on `provider`.

# 1.0.0

- **BREAKING**: Removed `useBlocPresentationListener` hook. Use `useOnStreamChanged` from `flutter_hooks` instead.
Expand Down
3 changes: 1 addition & 2 deletions packages/bloc_presentation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: bloc_presentation
description: >
Extends blocs with an additional stream which can serve as a way of indicating
single-time events (so-called "presentation events").
version: 1.0.0
version: 1.0.1
homepage: https://github.com/leancodepl/bloc_presentation/tree/master/packages/bloc_presentation

environment:
Expand All @@ -14,7 +14,6 @@ dependencies:
sdk: flutter
flutter_bloc: ^8.0.0
nested: ^1.0.0
provider: ^6.0.1

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:provider/provider.dart';

import 'fakes.dart';

Expand Down Expand Up @@ -60,7 +59,7 @@ void main() {

testWidgets('Correctly fallsback to the Provider cubit', (tester) async {
await tester.pumpWidget(
Provider<_TestCubit>.value(
BlocProvider<_TestCubit>.value(
value: cubit,
child: BlocPresentationListener<_TestCubit, _PresentationEvent>(
listener: listener,
Expand Down

0 comments on commit 08c1570

Please sign in to comment.