Skip to content

Commit

Permalink
pre. 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Jun 9, 2021
1 parent ec93aca commit c172ce6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0 - Jun 9, 2021

- First stable release.

## 0.0.3 - May 7, 2021

- Change to broadcast Stream.
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.1"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -94,14 +94,14 @@ packages:
name: rxdart
url: "https://pub.dartlang.org"
source: hosted
version: "0.26.0"
version: "0.27.1"
rxdart_ext:
dependency: "direct dev"
description:
name: rxdart_ext
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1"
version: "0.1.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -148,7 +148,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.3.0"
typed_data:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: did_change_dependencies
description: Return a Stream that emits null and done event when didChangeDependencies is called for the first time.
version: 0.0.3
version: 1.0.0
author: Petrus Nguyen Thai Hoc <[email protected]>
homepage: https://github.com/hoc081098/did_change_dependencies.git
repository: https://github.com/hoc081098/did_change_dependencies.git
Expand Down
15 changes: 14 additions & 1 deletion test/did_change_dependencies_test.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:async';

import 'package:did_change_dependencies/did_change_dependencies.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:did_change_dependencies/did_change_dependencies.dart';
import 'package:rxdart_ext/rxdart_ext.dart';

class TestWidget extends StatefulWidget {
Expand Down Expand Up @@ -39,6 +39,19 @@ class _TestWidgetState extends State<TestWidget>
);
}

@override
void didChangeDependencies() {
super.didChangeDependencies();

// event queue
Future(() {
didChangeDependencies$.listen(
(_) => print('didChangeDependencies: data'),
onDone: () => print('didChangeDependencies: done'),
);
});
}

@override
void dispose() {
super.dispose();
Expand Down

0 comments on commit c172ce6

Please sign in to comment.