Skip to content

Commit 43093ed

Browse files
committed
release: Release v0.0.7+
1 parent 7132dab commit 43093ed

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

CHANGELOG.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
1+
## 0.0.7+1
2+
3+
**Development**
4+
- Update some documents
5+
16
## 0.0.6, 0.0.7
27

38
**Feature**
4-
59
- [#40](https://github.com/wasabeef/flutter_hooks_test/pull/40) Add a parameter "wrapper" to allow adding providers to hooks. by [@KalSat](https://github.com/KalSat)
10+
```dart
11+
final result = await buildHook(
12+
(_) {
13+
buildCount++;
14+
return useUpdate();
15+
},
16+
wrapper: (child) => Container(child: child), // this
17+
);
18+
```
19+
620
- Update Flutter to ">=3.20.0"
721
- Update flutter_hooks to ">=0.20.0"
822

923
## 0.0.5
1024

1125
**Feature**
12-
1326
- [#35](https://github.com/wasabeef/flutter_hooks_test/pull/35) Support Flutter 3.16.0.
1427

1528
## 0.0.3, 0.0.4
1629

1730
**Feature**
18-
1931
- Update Dart to ">=2.17.0 <4.0.0"
2032
- Update Flutter to ">=3.0.0"
2133
- Update flutter_hooks to ">=0.18.0"
2234

2335
**Development**
24-
2536
- Update to Melos 3.0.1
2637

2738
## 0.0.1, 0.0.2

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,13 @@ testWidgets('should re-build component each time returned function is called', (
112112
testWidgets('should re-build component each time returned function is called', (tester) async {
113113
// After
114114
var buildCount = 0;
115-
final result = await buildHook((_) {
116-
buildCount++;
117-
return useUpdate();
118-
});
115+
final result = await buildHook(
116+
(_) {
117+
buildCount++;
118+
return useUpdate();
119+
},
120+
wrapper: (child) => Container(child: child),
121+
);
119122
120123
expect(buildCount, 1);
121124
final update = result.current;

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutter_hooks_test
22

33
description: Simple and complete Flutter hooks testing utilities that encourage good testing practices..
4-
version: 0.0.7
4+
version: 0.0.7+1
55
homepage: https://github.com/wasabeef/flutter_hooks_test
66
repository: https://github.com/wasabeef/flutter_hooks_test
77
documentation: https://github.com/wasabeef/flutter_hooks_test

0 commit comments

Comments
 (0)