diff --git a/CHANGELOG.md b/CHANGELOG.md index 4718828..8d33696 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0 - Jun 9, 2021 + +- First stable release. + ## 0.0.3 - May 7, 2021 - Change to broadcast Stream. diff --git a/pubspec.lock b/pubspec.lock index 9385627..f60fa97 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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: @@ -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 @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index 94e9db9..52b1c69 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 homepage: https://github.com/hoc081098/did_change_dependencies.git repository: https://github.com/hoc081098/did_change_dependencies.git diff --git a/test/did_change_dependencies_test.dart b/test/did_change_dependencies_test.dart index c4f1b80..063c6d3 100644 --- a/test/did_change_dependencies_test.dart +++ b/test/did_change_dependencies_test.dart @@ -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 { @@ -39,6 +39,19 @@ class _TestWidgetState extends State ); } + @override + void didChangeDependencies() { + super.didChangeDependencies(); + + // event queue + Future(() { + didChangeDependencies$.listen( + (_) => print('didChangeDependencies: data'), + onDone: () => print('didChangeDependencies: done'), + ); + }); + } + @override void dispose() { super.dispose();