Skip to content

Commit 2b1267b

Browse files
authored
Merge pull request #70 from wasabeef/release-005
2 parents d2056e4 + 2b78116 commit 2b1267b

62 files changed

Lines changed: 542 additions & 567 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursorindexingignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
# Don't index SpecStory auto-save files, but allow explicit context inclusion via @ references
3+
.specstory/**

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,7 @@ node_modules/
8686
!**/ios/**/default.mode2v3
8787
!**/ios/**/default.pbxuser
8888
!**/ios/**/default.perspectivev3
89+
90+
# SpecStory
91+
.specstory/
92+

.specstory/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SpecStory explanation file
2+
/.what-is-this.md

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616
<br />
1717
</div>
1818

19-
2019
<div align="center">
2120
<br />
2221
<pre>flutter pub add <a href="https://pub.dev/packages/flutter_use">flutter_use</a></pre>
2322
<br />
2423
</div>
2524

26-
2725
- **Sensors**
2826
- [`useBattery`](./docs/useBattery.md) &mdash; tracks device battery state. [![battery_plus](https://img.shields.io/badge/required-battery__plus-brightgreen)](https://pub.dev/packages/battery_plus)
2927
- [`useGeolocation`](./docs/useGeolocation.md) &mdash; tracks geo location and permission state of user's device. [![geolocator](https://img.shields.io/badge/required-geolocator-brightgreen)](https://pub.dev/packages/geolocator)
@@ -57,7 +55,7 @@
5755
- [`useLifecycles`](./docs/useLifecycles.md) &mdash; calls `mount` and `unmount` callbacks.
5856
- [`useLogger`](./docs/useLogger.md) &mdash; logs in console as component goes through life-cycles. [![][img-demo]](https://dartpad.dev/?id=c72c9ab0fa46f93dd266f6557a29a3ed&null_safety=true)
5957
- [`useMount`](./docs/useMount.md) &mdash; calls `mount` callbacks. [![][img-demo]](https://dartpad.dev/?id=aa25e9bc3913779fcc795bef2bdc8d39&null_safety=true)
60-
- [`useUnmount`](./docs/useUnmount.md) &mdash; calls `unmount` callbacks. [![][img-demo]](https://dartpad.dev/?id=aa25e9bc3913779fcc795bef2bdc8d39&null_safety=true)
58+
- [`useUnmount`](./docs/useUnmount.md) &mdash; calls `unmount` callbacks. [![][img-demo]](https://dartpad.dev/?id=aa25e9bc3913779fcc795bef2bdc8d39&null_safety=true)
6159
- [`useUpdateEffect`](./docs/useUpdateEffect.md) &mdash; run an `effect` only on updates. [![][img-demo]](https://dartpad.dev/?id=724fee007fe78419fde61f185b83095b&null_safety=true)
6260
- [`useCustomCompareEffect`](./docs/useCustomCompareEffect.md) &mdash; run an `effect` depending on deep comparison of its dependencies. [![][img-demo]](https://dartpad.dev/?id=27146b5ca9189664e39ad4dfe9b08abe&null_safety=true)
6361
<br/>
@@ -68,7 +66,7 @@
6866
- [`usePreviousDistinct`](./docs/usePreviousDistinct.md) &mdash; like [`usePrevious`](https://pub.dev/documentation/flutter_hooks/latest/flutter_hooks/usePrevious.html) but with a predicate to determine if `previous` should update. [![][img-demo]](https://dartpad.dev/?id=86e0e29f8198095dbd0d68a736c671bb&null_safety=true)
6967
- [`useStateList`](./docs/useStateList.md) &mdash; circularly iterates over an array. [![][img-demo]](https://dartpad.dev/?id=5761442418062838b04cbe21a36be586&null_safety=true)
7068
- [`useToggle` and `useBoolean`](./docs/useToggle.md) &mdash; tracks state of a boolean. [![][img-demo]](https://dartpad.dev/?id=7e070264db2566b3c990c403dd61c3ff&null_safety=true)
71-
- [`useCounter` and `useNumber`](./docs/useCounter.md) &mdash; tracks state of a number. [![][img-demo]](https://dartpad.dev/?id=5ee82acd2f1947b2d0ca02da4ab327b8&null_safety=true)
69+
- [`useCounter` and `useNumber`](./docs/useCounter.md) &mdash; tracks state of a number. [![][img-demo]](https://dartpad.dev/?id=5ee82acd2f1947b2d0ca02da4ab327b8&null_safety=true)
7270
- [`useList`](./docs/useList.md) &mdash; tracks state of an array. [![][img-demo]](https://dartpad.dev/?id=e04b584b8ab67492a1024ea7dd9adcbb&null_safety=true)
7371
- [`useMap`](./docs/useMap.md) &mdash; tracks state of a map. [![][img-demo]](https://dartpad.dev/?id=325b4737e78d40463fc0f3d3cc317b35&null_safety=true)
7472
- [`useSet`](./docs/useSet.md) &mdash; tracks state of a Set. [![][img-demo]](https://dartpad.dev/?id=3d1199828a54b19c526a26a6c0021293&null_safety=true)
@@ -78,7 +76,7 @@
7876
<br/>
7977
<br/>
8078
- <details><summary><b>TBD</b></summary><div>
81-
79+
8280
- `useCopyToClipboard` &mdash; copies text to clipboard.
8381
- `useEvent` &mdash; subscribe to events.
8482
- `useScroll` &mdash; tracks a widget's scroll position.
@@ -92,9 +90,8 @@
9290
- `usePromise` &mdash; resolves promise only while component is mounted.
9391
- `useObservable` &mdash; tracks latest value of an `Observable`.
9492
- `useThrottle` and `useThrottleFn` &mdash; throttles a function.
95-
96-
</div></details>
9793

94+
</div></details>
9895

9996
<br />
10097
<br />
@@ -107,5 +104,4 @@
107104
<br />
108105
<br />
109106

110-
111107
[img-demo]: https://img.shields.io/badge/demo-%20%20%20%F0%9F%9A%80-green.svg

docs/useAccelerometer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Depends on [sensors_plus](https://pub.dev/packages/sensors_plus).
88

99
```yaml
1010
dependencies:
11-
flutter_use_sensors: ^0.0.2
11+
flutter_use_sensors:
1212
```
1313
1414
## Usage

docs/useAssetVideo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Depends on [video_player](https://pub.dev/packages/video_player).
88

99
```yaml
1010
dependencies:
11-
flutter_use_video: ^0.0.2
11+
flutter_use_video:
1212
```
1313
1414
## Usage

docs/useAudio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Depends on [just_audio](https://pub.dev/packages/just_audio).
88

99
```yaml
1010
dependencies:
11-
flutter_use_audio: ^0.0.2
11+
flutter_use_audio:
1212
```
1313
1414
## Usage

docs/useBattery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Depends on [battery_plus](https://pub.dev/packages/battery_plus).
88

99
```yaml
1010
dependencies:
11-
flutter_use_battery: ^0.0.2
11+
flutter_use_battery:
1212
```
1313
1414
## Usage

docs/useBuildsCount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tracks component's builds count including the first build.
66

77
```yaml
88
dependencies:
9-
flutter_use: ^0.0.2
9+
flutter_use:
1010
```
1111
1212
## Usage

docs/useCounter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Flutter state hook that tracks a numeric value.
77

88
```yaml
99
dependencies:
10-
flutter_use: ^0.0.2
10+
flutter_use:
1111
```
1212
1313
## Usage

0 commit comments

Comments
 (0)