Skip to content

Commit c840466

Browse files
committed
feat retrieve packages from github
1 parent 45456cb commit c840466

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/flutter_form_bloc/pubspec.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ dependencies:
1515
bloc: ^8.0.3
1616
# flutter_bloc: ^8.0.1
1717
form_bloc:
18-
path: ../form_bloc
18+
# path: ../form_bloc
19+
git:
20+
url: https://github.com/BreX900/form_bloc.git
21+
path: ./packages/form_bloc
22+
ref: next
1923
# form_bloc: ^0.30.0
2024
equatable: ^2.0.3
2125
rxdart: ^0.27.3

packages/form_bloc/lib/src/blocs/field/field_bloc.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@ abstract class SingleFieldBloc<
320320
// because it emit a completed async validation
321321
if (fieldBlocs.isNotEmpty) {
322322
_revalidateFieldBlocsSubscription = Rx.merge<void>(fieldBlocs.map((e) {
323-
return e.stream.map<void>((event) {
324-
event.value;
325-
}).distinct(DeepCollectionEquality().equals);
323+
return e.stream
324+
.map<dynamic>((state) => state.value)
325+
.distinct(DeepCollectionEquality().equals);
326326
})).listen((_) {
327327
if (_autoValidate) {
328328
_validate();

0 commit comments

Comments
 (0)