Skip to content

Commit 683b1b0

Browse files
committed
Fixed Stream has already been listened to. #1
1 parent 5d8a001 commit 683b1b0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

example/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ packages:
141141
name: protocol_handler
142142
url: "https://pub.dartlang.org"
143143
source: hosted
144-
version: "0.1.1"
144+
version: "0.1.2"
145145
sky_engine:
146146
dependency: transitive
147147
description: flutter
@@ -209,7 +209,7 @@ packages:
209209
path: ".."
210210
relative: true
211211
source: path
212-
version: "0.1.0"
212+
version: "0.1.1"
213213
uni_links_platform_interface:
214214
dependency: transitive
215215
description:

lib/src/uni_links_desktop.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class UniLinksDesktop extends UniLinksPlatform with ProtocolListener {
2929
Future<String?> getInitialLink() => protocolHandler.getInitialUrl();
3030

3131
@override
32-
Stream<String?> get linkStream => _linkStreamController.stream;
32+
Stream<String?> get linkStream =>
33+
_linkStreamController.stream.asBroadcastStream();
3334

3435
@override
3536
void onProtocolUrlReceived(String url) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
flutter:
1616
sdk: flutter
1717

18-
protocol_handler: ^0.1.1
18+
protocol_handler: ^0.1.2
1919
uni_links_platform_interface: ^1.0.0
2020

2121
dev_dependencies:

0 commit comments

Comments
 (0)