Skip to content

Commit 8cb571c

Browse files
committed
bump to 0.4.0
1 parent 27c6a4f commit 8cb571c

File tree

12 files changed

+179
-158
lines changed

12 files changed

+179
-158
lines changed

README.md

+29-21
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,28 @@ A view can be interested in some particular states and has to use a logic compon
1919

2020

2121

22-
- [Getting started](#getting-started)
23-
- [Basic usage](#basic-usage)
24-
- [Intermediate usage](#intermediate-usage)
25-
- [Select](#select)
26-
- [Consumer](#consumer)
27-
- [LogicLoader](#logicLoader)
28-
- [Overrides](#overrides)
29-
- [Mocking values in tests](#mocking-values-in-tests)
30-
- [Advanced usage](#advanced-usage)
31-
- [Computed](#computed)
32-
- [Observers](#observers)
33-
- [Undo/Redo](#undoredo)
34-
- [Disposable](#disposable)
35-
- [StateListener](#stateListener)
36-
- [Snippets](#snippets)
22+
- [binder](#binder)
23+
- [The vision](#the-vision)
24+
- [Getting started](#getting-started)
25+
- [Installation](#installation)
26+
- [Basic usage](#basic-usage)
27+
- [Intermediate usage](#intermediate-usage)
28+
- [Select](#select)
29+
- [Consumer](#consumer)
30+
- [LogicLoader](#logicloader)
31+
- [Overrides](#overrides)
32+
- [Reusing a reference under a different scope.](#reusing-a-reference-under-a-different-scope)
33+
- [Mocking values in tests](#mocking-values-in-tests)
34+
- [Advanced usage](#advanced-usage)
35+
- [Computed](#computed)
36+
- [Observers](#observers)
37+
- [Undo/Redo](#undoredo)
38+
- [Disposable](#disposable)
39+
- [StateListener](#statelistener)
40+
- [DartDev Tools](#dartdev-tools)
41+
- [Snippets](#snippets)
42+
- [Sponsoring](#sponsoring)
43+
- [Contributions](#contributions)
3744

3845
## Getting started
3946

@@ -109,7 +116,7 @@ In any widget under the `BinderScope`, you can call extension methods on `BuildC
109116
```dart
110117
111118
class CounterView extends StatelessWidget {
112-
const CounterView({Key key}) : super(key: key);
119+
const CounterView({Key? key}) : super(key: key);
113120
114121
@override
115122
Widget build(BuildContext context) {
@@ -168,7 +175,7 @@ For example, if we have an app bar title which is only responsible for displayin
168175

169176
```dart
170177
class AppBarTitle extends StatelessWidget {
171-
const AppBarTitle({Key key}) : super(key: key);
178+
const AppBarTitle({Key? key}) : super(key: key);
172179
173180
@override
174181
Widget build(BuildContext context) {
@@ -187,7 +194,7 @@ This widget can take a watchable (a `StateRef` or even a selected state of a `St
187194

188195
```dart
189196
class MyAppBar extends StatelessWidget {
190-
const MyAppBar({Key key}) : super(key: key);
197+
const MyAppBar({Key? key}) : super(key: key);
191198
192199
@override
193200
Widget build(BuildContext context) {
@@ -238,7 +245,7 @@ From the widget side, you'll have to use the `LogicLoader` and provide it the lo
238245
```dart
239246
class Home extends StatelessWidget {
240247
const Home({
241-
Key key,
248+
Key? key,
242249
}) : super(key: key);
243250
244251
@override
@@ -256,7 +263,7 @@ You can watch the state in a subtree to display a progress indicator when the da
256263
```dart
257264
class UsersView extends StatelessWidget {
258265
const UsersView({
259-
Key key,
266+
Key? key,
260267
}) : super(key: key);
261268
262269
@override
@@ -278,7 +285,7 @@ Alternatively, you can use the `builder` parameter to achieve the same goal:
278285
```dart
279286
class Home extends StatelessWidget {
280287
const Home({
281-
Key key,
288+
Key? key,
282289
}) : super(key: key);
283290
284291
@override
@@ -425,6 +432,7 @@ You may encounter a situation where different widgets are interested in a derive
425432
Let's say you have a list of products referenced by `productsRef`, each product has a price, and you can filter these products according to a price range (referenced by `minPriceRef` and `maxPriceRef`).
426433

427434
You could then define the following `Computed` instance:
435+
428436
```dart
429437
final filteredProductsRef = Computed((watch) {
430438
final products = watch(productsRef);

examples/architecture/pubspec.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ packages:
3535
path: "../../packages/binder"
3636
relative: true
3737
source: path
38-
version: "0.3.1"
38+
version: "0.4.0"
3939
boolean_selector:
4040
dependency: transitive
4141
description:
@@ -638,5 +638,5 @@ packages:
638638
source: hosted
639639
version: "2.2.1"
640640
sdks:
641-
dart: ">=2.12.0-0.0 <3.0.0"
641+
dart: ">=2.12.0 <3.0.0"
642642
flutter: ">=1.17.0"

examples/counter/pubspec.lock

+21-21
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ packages:
2828
name: async
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "2.5.0-nullsafety.1"
31+
version: "2.5.0"
3232
binder:
3333
dependency: "direct main"
3434
description:
3535
path: "../../packages/binder"
3636
relative: true
3737
source: path
38-
version: "0.2.4"
38+
version: "0.4.0"
3939
boolean_selector:
4040
dependency: transitive
4141
description:
4242
name: boolean_selector
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "2.1.0-nullsafety.1"
45+
version: "2.1.0"
4646
build:
4747
dependency: transitive
4848
description:
@@ -70,14 +70,14 @@ packages:
7070
name: characters
7171
url: "https://pub.dartlang.org"
7272
source: hosted
73-
version: "1.1.0-nullsafety.3"
73+
version: "1.1.0"
7474
charcode:
7575
dependency: transitive
7676
description:
7777
name: charcode
7878
url: "https://pub.dartlang.org"
7979
source: hosted
80-
version: "1.2.0-nullsafety.1"
80+
version: "1.2.0"
8181
cli_util:
8282
dependency: transitive
8383
description:
@@ -91,7 +91,7 @@ packages:
9191
name: clock
9292
url: "https://pub.dartlang.org"
9393
source: hosted
94-
version: "1.1.0-nullsafety.1"
94+
version: "1.1.0"
9595
code_builder:
9696
dependency: transitive
9797
description:
@@ -105,7 +105,7 @@ packages:
105105
name: collection
106106
url: "https://pub.dartlang.org"
107107
source: hosted
108-
version: "1.15.0-nullsafety.3"
108+
version: "1.15.0"
109109
convert:
110110
dependency: transitive
111111
description:
@@ -147,7 +147,7 @@ packages:
147147
name: fake_async
148148
url: "https://pub.dartlang.org"
149149
source: hosted
150-
version: "1.2.0-nullsafety.1"
150+
version: "1.2.0"
151151
fixnum:
152152
dependency: transitive
153153
description:
@@ -199,14 +199,14 @@ packages:
199199
name: matcher
200200
url: "https://pub.dartlang.org"
201201
source: hosted
202-
version: "0.12.10-nullsafety.1"
202+
version: "0.12.10"
203203
meta:
204204
dependency: transitive
205205
description:
206206
name: meta
207207
url: "https://pub.dartlang.org"
208208
source: hosted
209-
version: "1.3.0-nullsafety.3"
209+
version: "1.3.0"
210210
mockito:
211211
dependency: "direct dev"
212212
description:
@@ -241,7 +241,7 @@ packages:
241241
name: path
242242
url: "https://pub.dartlang.org"
243243
source: hosted
244-
version: "1.8.0-nullsafety.1"
244+
version: "1.8.0"
245245
pedantic:
246246
dependency: transitive
247247
description:
@@ -281,56 +281,56 @@ packages:
281281
name: source_span
282282
url: "https://pub.dartlang.org"
283283
source: hosted
284-
version: "1.8.0-nullsafety.2"
284+
version: "1.8.0"
285285
stack_trace:
286286
dependency: transitive
287287
description:
288288
name: stack_trace
289289
url: "https://pub.dartlang.org"
290290
source: hosted
291-
version: "1.10.0-nullsafety.1"
291+
version: "1.10.0"
292292
stream_channel:
293293
dependency: transitive
294294
description:
295295
name: stream_channel
296296
url: "https://pub.dartlang.org"
297297
source: hosted
298-
version: "2.1.0-nullsafety.1"
298+
version: "2.1.0"
299299
string_scanner:
300300
dependency: transitive
301301
description:
302302
name: string_scanner
303303
url: "https://pub.dartlang.org"
304304
source: hosted
305-
version: "1.1.0-nullsafety.1"
305+
version: "1.1.0"
306306
term_glyph:
307307
dependency: transitive
308308
description:
309309
name: term_glyph
310310
url: "https://pub.dartlang.org"
311311
source: hosted
312-
version: "1.2.0-nullsafety.1"
312+
version: "1.2.0"
313313
test_api:
314314
dependency: transitive
315315
description:
316316
name: test_api
317317
url: "https://pub.dartlang.org"
318318
source: hosted
319-
version: "0.2.19-nullsafety.2"
319+
version: "0.2.19"
320320
typed_data:
321321
dependency: transitive
322322
description:
323323
name: typed_data
324324
url: "https://pub.dartlang.org"
325325
source: hosted
326-
version: "1.3.0-nullsafety.3"
326+
version: "1.3.0"
327327
vector_math:
328328
dependency: transitive
329329
description:
330330
name: vector_math
331331
url: "https://pub.dartlang.org"
332332
source: hosted
333-
version: "2.1.0-nullsafety.3"
333+
version: "2.1.0"
334334
watcher:
335335
dependency: transitive
336336
description:
@@ -346,5 +346,5 @@ packages:
346346
source: hosted
347347
version: "2.2.1"
348348
sdks:
349-
dart: ">=2.10.0-110 <2.11.0"
350-
flutter: ">=1.17.0 <2.0.0"
349+
dart: ">=2.12.0 <3.0.0"
350+
flutter: ">=1.17.0"

0 commit comments

Comments
 (0)