Skip to content

Commit

Permalink
2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed May 21, 2021
1 parent 830c6d2 commit c27b85d
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.1 - May 21, 2021

- Fix `RxStreamBuilder`: missing pass `Key? key` to parent constructor.

## 2.1.0 - May 10, 2021

- Update `rxdart` to `0.27.0`.
Expand Down
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:pedantic/analysis_options.1.9.0.yaml
include: package:pedantic/analysis_options.1.11.0.yaml
analyzer:
strong-mode:
implicit-casts: false
Expand Down
2 changes: 1 addition & 1 deletion example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:pedantic/analysis_options.1.9.0.yaml
include: package:pedantic/analysis_options.1.11.0.yaml
linter:
rules:
- prefer_final_locals
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ class TextBloc1 extends StatelessWidget {
stream: bloc.string$,
builder: (context, state) {
return ElevatedButton(
onPressed: bloc.load,
child: Text(
'BLOC 1: ${state ?? 'No data'}. Click to load',
),
onPressed: bloc.load,
);
},
);
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.1"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -75,7 +75,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.1.0"
version: "2.1.1"
flutter_provider:
dependency: transitive
description:
Expand Down Expand Up @@ -176,7 +176,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.3.0"
typed_data:
dependency: transitive
description:
Expand Down
5 changes: 3 additions & 2 deletions lib/src/rx_stream_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ class RxStreamBuilder<T> extends StatefulWidget {
Key? key,
required ValueStream<T> stream,
required RxWidgetBuilder<T> builder,
}) : _builder = builder,
_stream = stream;
}) : _builder = builder,
_stream = stream,
super(key: key);

@override
_RxStreamBuilderState<T> createState() => _RxStreamBuilderState();
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.1"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -428,7 +428,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.3.0"
timing:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_bloc_pattern
description: Bloc provider. Provides bloc to descendant widget (O(1)), and the bloc is disposed appropriately by state which the bloc_provider holds internally.
version: 2.1.0
version: 2.1.1
author: Petrus Nguyen Thai Hoc <hoc081098@gmail.com>
homepage: https://github.com/hoc081098/flutter_bloc_pattern.git
repository: https://github.com/hoc081098/flutter_bloc_pattern.git
Expand Down
4 changes: 2 additions & 2 deletions test/flutter_bloc_pattern_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ https://github.com/hoc081098/flutter_bloc_pattern/issues/new
late BuildContext context;
await tester.pumpWidget(
BlocProvider<BaseBloc>(
initBloc: initBloc,
child: Builder(
builder: (c) {
context = c;
return Container();
},
),
initBloc: initBloc,
),
);

Expand Down Expand Up @@ -300,11 +300,11 @@ https://github.com/hoc081098/flutter_bloc_pattern/issues/new
test('Empty bloc providers throws AssertError', () {
expect(
() => BlocProviders(
blocProviders: [],
child: Text(
'Hello',
textDirection: TextDirection.ltr,
),
blocProviders: [],
),
throwsAssertionError,
);
Expand Down

0 comments on commit c27b85d

Please sign in to comment.