Skip to content

Commit 740b043

Browse files
Update packages to latest versions
1 parent 35811b5 commit 740b043

File tree

5 files changed

+82
-23
lines changed

5 files changed

+82
-23
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
## [0.0.2] - 5/12/19
66

77
* Bug fixes. Updated README. Added LICENSE and CHANGELOG
8+
9+
## [0.1.0] - 10/18/19
10+
11+
* Update packages to latest versions

lib/src/bloc/query_bloc.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class QueryBloc extends Bloc<QueryEvent, QueryState> {
3333

3434
yield QueryResult(results: documents);
3535
}
36-
yield this.currentState;
36+
yield this.state;
3737
}
3838
}
3939

lib/src/firestore_query_widget.dart

+4-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class _FirestoreQueryWidgetState extends State<FirestoreQueryWidget> {
4040

4141
@override
4242
void initState() {
43-
BlocSupervisor().delegate = LoggingDelegate();
43+
BlocSupervisor.delegate = LoggingDelegate();
4444
queryBloc = QueryBloc(firestore: widget.firestore);
4545
_collectionController = TextEditingController()
4646
..addListener(() {
@@ -61,7 +61,7 @@ class _FirestoreQueryWidgetState extends State<FirestoreQueryWidget> {
6161

6262
@override
6363
void dispose() {
64-
queryBloc.dispose();
64+
queryBloc.close();
6565
super.dispose();
6666
}
6767

@@ -123,7 +123,7 @@ class _FirestoreQueryWidgetState extends State<FirestoreQueryWidget> {
123123
isNull = true;
124124
break;
125125
}
126-
queryBloc.dispatch(NewQueryEvent(
126+
queryBloc.add(NewQueryEvent(
127127
collection: collection,
128128
field: field,
129129
isEqualTo: isEqualTo,
@@ -207,8 +207,7 @@ class _FirestoreQueryWidgetState extends State<FirestoreQueryWidget> {
207207
],
208208
),
209209
),
210-
BlocBuilder<QueryEvent, QueryState>(
211-
bloc: queryBloc,
210+
BlocBuilder<QueryBloc, QueryState>(
212211
builder: (context, snapshot) {
213212
return Expanded(
214213
child: ResultsCard(

pubspec.lock

+69-13
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,41 @@
11
# Generated by pub
2-
# See https://www.dartlang.org/tools/pub/glossary#lockfile
2+
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4+
archive:
5+
dependency: transitive
6+
description:
7+
name: archive
8+
url: "https://pub.dartlang.org"
9+
source: hosted
10+
version: "2.0.10"
11+
args:
12+
dependency: transitive
13+
description:
14+
name: args
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "1.5.2"
418
async:
519
dependency: transitive
620
description:
721
name: async
822
url: "https://pub.dartlang.org"
923
source: hosted
10-
version: "2.2.0"
24+
version: "2.3.0"
1125
bloc:
1226
dependency: "direct main"
1327
description:
1428
name: bloc
1529
url: "https://pub.dartlang.org"
1630
source: hosted
17-
version: "0.13.0"
31+
version: "0.16.1"
1832
boolean_selector:
1933
dependency: transitive
2034
description:
2135
name: boolean_selector
2236
url: "https://pub.dartlang.org"
2337
source: hosted
24-
version: "1.0.4"
38+
version: "1.0.5"
2539
charcode:
2640
dependency: transitive
2741
description:
@@ -35,14 +49,28 @@ packages:
3549
name: cloud_firestore
3650
url: "https://pub.dartlang.org"
3751
source: hosted
38-
version: "0.11.0+1"
52+
version: "0.12.9+5"
3953
collection:
4054
dependency: transitive
4155
description:
4256
name: collection
4357
url: "https://pub.dartlang.org"
4458
source: hosted
4559
version: "1.14.11"
60+
convert:
61+
dependency: transitive
62+
description:
63+
name: convert
64+
url: "https://pub.dartlang.org"
65+
source: hosted
66+
version: "2.1.1"
67+
crypto:
68+
dependency: transitive
69+
description:
70+
name: crypto
71+
url: "https://pub.dartlang.org"
72+
source: hosted
73+
version: "2.1.3"
4674
firebase_core:
4775
dependency: transitive
4876
description:
@@ -61,12 +89,19 @@ packages:
6189
name: flutter_bloc
6290
url: "https://pub.dartlang.org"
6391
source: hosted
64-
version: "0.13.0"
92+
version: "0.22.1"
6593
flutter_test:
6694
dependency: "direct dev"
6795
description: flutter
6896
source: sdk
6997
version: "0.0.0"
98+
image:
99+
dependency: transitive
100+
description:
101+
name: image
102+
url: "https://pub.dartlang.org"
103+
source: hosted
104+
version: "2.1.4"
70105
matcher:
71106
dependency: transitive
72107
description:
@@ -80,28 +115,42 @@ packages:
80115
name: meta
81116
url: "https://pub.dartlang.org"
82117
source: hosted
83-
version: "1.1.6"
118+
version: "1.1.7"
84119
path:
85120
dependency: transitive
86121
description:
87122
name: path
88123
url: "https://pub.dartlang.org"
89124
source: hosted
90-
version: "1.6.2"
125+
version: "1.6.4"
91126
pedantic:
92127
dependency: transitive
93128
description:
94129
name: pedantic
95130
url: "https://pub.dartlang.org"
96131
source: hosted
97-
version: "1.5.0"
132+
version: "1.8.0+1"
133+
petitparser:
134+
dependency: transitive
135+
description:
136+
name: petitparser
137+
url: "https://pub.dartlang.org"
138+
source: hosted
139+
version: "2.4.0"
140+
provider:
141+
dependency: transitive
142+
description:
143+
name: provider
144+
url: "https://pub.dartlang.org"
145+
source: hosted
146+
version: "3.1.0+1"
98147
quiver:
99148
dependency: transitive
100149
description:
101150
name: quiver
102151
url: "https://pub.dartlang.org"
103152
source: hosted
104-
version: "2.0.3"
153+
version: "2.0.5"
105154
rxdart:
106155
dependency: transitive
107156
description:
@@ -141,7 +190,7 @@ packages:
141190
name: string_scanner
142191
url: "https://pub.dartlang.org"
143192
source: hosted
144-
version: "1.0.4"
193+
version: "1.0.5"
145194
term_glyph:
146195
dependency: transitive
147196
description:
@@ -170,6 +219,13 @@ packages:
170219
url: "https://pub.dartlang.org"
171220
source: hosted
172221
version: "2.0.8"
222+
xml:
223+
dependency: transitive
224+
description:
225+
name: xml
226+
url: "https://pub.dartlang.org"
227+
source: hosted
228+
version: "3.5.0"
173229
sdks:
174-
dart: ">=2.2.2 <3.0.0"
175-
flutter: ">=1.2.0 <2.0.0"
230+
dart: ">=2.4.0 <3.0.0"
231+
flutter: ">=1.5.0 <2.0.0"

pubspec.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_firestore_visual_query
22
description: A visual way to query your firestore database for testing using Flutter
3-
version: 0.0.2
3+
version: 0.1.0
44
author: Jonathan White <[email protected]>
55
homepage: https://github.com/ThinkDigitalRepair/flutter_firestore_visual_query
66

@@ -10,9 +10,9 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
cloud_firestore: ^0.11.0+1
14-
flutter_bloc: ^0.13.0
15-
bloc: ^0.13.0
13+
cloud_firestore: ^0.12.9+5
14+
flutter_bloc: ^0.22.1
15+
bloc: ^0.16.1
1616

1717

1818

0 commit comments

Comments
 (0)