Skip to content

Commit 22c8f42

Browse files
committed
chore(publish): prepare for v2.0.0
1 parent 5ee5c1f commit 22c8f42

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Flutter-Dart-Open-Source - Petrus Nguyễn Thái Học
3+
Copyright (c) 2020-2024 Flutter-Dart-Open-Source - Petrus Nguyễn Thái Học
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
# listenable_stream
22

3-
- Convert Flutter's `Listenable` (eg. `ChangeNotifier`) to `Stream`.
4-
- Convert Flutter's `ValueListenable` (eg. `ValueNotifier`) to `ValueStream` (incl. replay and not replay).
3+
- Convert Flutter's `Listenable` (e.g. `ChangeNotifier`) to `Stream`.
4+
- Convert Flutter's `ValueListenable` (e.g. `ValueNotifier`) to `ValueStream` (incl. "replay" and "not replay").
55

66
[![Pub Version](https://img.shields.io/pub/v/listenable_stream?include_prereleases)](https://pub.dev/packages/listenable_stream)
77
[![codecov](https://codecov.io/gh/Flutter-Dart-Open-Source/listenable_stream/branch/master/graph/badge.svg?token=6eORcR6Web)](https://codecov.io/gh/Flutter-Dart-Open-Source/listenable_stream)
8-
[![Flutter Tests](https://github.com/Flutter-Dart-Open-Source/listenable_stream/workflows/Flutter%20Tests/badge.svg)](https://github.com/Flutter-Dart-Open-Source/listenable_stream.git)
8+
[![Flutter Tests](https://github.com/Flutter-Dart-Open-Source/listenable_stream/actions/workflows/flutter.yml/badge.svg)](https://github.com/Flutter-Dart-Open-Source/listenable_stream/actions/workflows/flutter.yml)
9+
[![GitHub](https://img.shields.io/github/license/hoc081098/flutter_bloc_pattern?color=4EB1BA)](https://opensource.org/licenses/MIT)
10+
[![Style](https://img.shields.io/badge/style-lints-40c4ff.svg)](https://pub.dev/packages/lints)
11+
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FFlutter-Dart-Open-Source%2Flistenable_stream&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)
912

1013
- [x] `Listenable``Stream<Listenable>`
1114
- [x] `ValueListenable<T>``ValueStream<T>`
1215

1316
## Usage
1417

1518
### Listenable.toStream()
19+
1620
```dart
1721
final ChangeNotifier changeNotifier = ChangeNotifier();
1822
final Stream<ChangeNotifier> stream = changeNotifier.toStream();
@@ -23,6 +27,7 @@ changeNotifier.notifyListeners();
2327
```
2428

2529
### ValueListenable.toValueStream()
30+
2631
```dart
2732
final ValueNotifier<int> valueNotifier = ValueNotifier(0);
2833
final ValueListenableStream<int> stream = valueNotifier.toValueStream();
@@ -34,6 +39,7 @@ print(stream.value); // prints 2
3439
```
3540

3641
### ValueListenable.toValueStream(replayValue: true)
42+
3743
```dart
3844
final ValueNotifier<int> valueNotifier = ValueNotifier(0);
3945
final ValueListenableStream<int> stream = valueNotifier.toValueStream(replayValue: true);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: listenable_stream
2-
description: Convert Listenable (e.g. ChangeNotifier), ValueListenable(eg. ValueNotifier) to Stream / ValueStream.
2+
description: Convert Listenable (e.g. ChangeNotifier), ValueListenable(e.g. ValueNotifier) to Stream / ValueStream.
33
version: 2.0.0
44
homepage: https://github.com/Flutter-Dart-Open-Source/listenable_stream.git
55
repository: https://github.com/Flutter-Dart-Open-Source/listenable_stream.git

0 commit comments

Comments
 (0)