Skip to content

Commit c27b85d

Browse files
committed
2.1.1
1 parent 830c6d2 commit c27b85d

File tree

9 files changed

+18
-13
lines changed

9 files changed

+18
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.1.1 - May 21, 2021
2+
3+
- Fix `RxStreamBuilder`: missing pass `Key? key` to parent constructor.
4+
15
## 2.1.0 - May 10, 2021
26

37
- Update `rxdart` to `0.27.0`.

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:pedantic/analysis_options.1.9.0.yaml
1+
include: package:pedantic/analysis_options.1.11.0.yaml
22
analyzer:
33
strong-mode:
44
implicit-casts: false

example/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:pedantic/analysis_options.1.9.0.yaml
1+
include: package:pedantic/analysis_options.1.11.0.yaml
22
linter:
33
rules:
44
- prefer_final_locals

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ class TextBloc1 extends StatelessWidget {
151151
stream: bloc.string$,
152152
builder: (context, state) {
153153
return ElevatedButton(
154+
onPressed: bloc.load,
154155
child: Text(
155156
'BLOC 1: ${state ?? 'No data'}. Click to load',
156157
),
157-
onPressed: bloc.load,
158158
);
159159
},
160160
);

example/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.5.0"
10+
version: "2.6.1"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
@@ -75,7 +75,7 @@ packages:
7575
path: ".."
7676
relative: true
7777
source: path
78-
version: "2.1.0"
78+
version: "2.1.1"
7979
flutter_provider:
8080
dependency: transitive
8181
description:
@@ -176,7 +176,7 @@ packages:
176176
name: test_api
177177
url: "https://pub.dartlang.org"
178178
source: hosted
179-
version: "0.2.19"
179+
version: "0.3.0"
180180
typed_data:
181181
dependency: transitive
182182
description:

lib/src/rx_stream_builder.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ class RxStreamBuilder<T> extends StatefulWidget {
2828
Key? key,
2929
required ValueStream<T> stream,
3030
required RxWidgetBuilder<T> builder,
31-
}) : _builder = builder,
32-
_stream = stream;
31+
}) : _builder = builder,
32+
_stream = stream,
33+
super(key: key);
3334

3435
@override
3536
_RxStreamBuilderState<T> createState() => _RxStreamBuilderState();

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ packages:
2828
name: async
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "2.5.0"
31+
version: "2.6.1"
3232
boolean_selector:
3333
dependency: transitive
3434
description:
@@ -428,7 +428,7 @@ packages:
428428
name: test_api
429429
url: "https://pub.dartlang.org"
430430
source: hosted
431-
version: "0.2.19"
431+
version: "0.3.0"
432432
timing:
433433
dependency: transitive
434434
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_bloc_pattern
22
description: Bloc provider. Provides bloc to descendant widget (O(1)), and the bloc is disposed appropriately by state which the bloc_provider holds internally.
3-
version: 2.1.0
3+
version: 2.1.1
44
author: Petrus Nguyen Thai Hoc <[email protected]>
55
homepage: https://github.com/hoc081098/flutter_bloc_pattern.git
66
repository: https://github.com/hoc081098/flutter_bloc_pattern.git

test/flutter_bloc_pattern_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ https://github.com/hoc081098/flutter_bloc_pattern/issues/new
147147
late BuildContext context;
148148
await tester.pumpWidget(
149149
BlocProvider<BaseBloc>(
150+
initBloc: initBloc,
150151
child: Builder(
151152
builder: (c) {
152153
context = c;
153154
return Container();
154155
},
155156
),
156-
initBloc: initBloc,
157157
),
158158
);
159159

@@ -300,11 +300,11 @@ https://github.com/hoc081098/flutter_bloc_pattern/issues/new
300300
test('Empty bloc providers throws AssertError', () {
301301
expect(
302302
() => BlocProviders(
303+
blocProviders: [],
303304
child: Text(
304305
'Hello',
305306
textDirection: TextDirection.ltr,
306307
),
307-
blocProviders: [],
308308
),
309309
throwsAssertionError,
310310
);

0 commit comments

Comments
 (0)