This repository was archived by the owner on Oct 5, 2021. It is now read-only.
conver serviceStatus of single stream to multi stream#57
Open
skapxd wants to merge 1 commit intoBaseflow:developfrom
Open
conver serviceStatus of single stream to multi stream#57skapxd wants to merge 1 commit intoBaseflow:developfrom
skapxd wants to merge 1 commit intoBaseflow:developfrom
Conversation
Member
There was a problem hiding this comment.
Hi @skapxd, thank you for taking the effort to create a pull request. However this seems strange to me the receiveBroadcastStream already returns a broadcast stream as the name suggests (and according to the documentation).
What you are suggesting here seems completely redundant. If there is an issue here this sounds like a bug in the Flutter framework itself and should be addressed there. In the meantime if this keeps on being a problem for you, you should convert it to a broadcast stream inside your own code for now. You could do something like:
Stream<ServiceStatus> serviceStream = LocationPermissions().serviceStatus().asBroadcastStream();If I am wrong (believe me this happens), please leave a comment and I will reconsider.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, I'm new contributing.
I ran into a problem when I was listening to the status of the gps "serviceStatus" in multiple pages of my app, so I decided to make the "serviceStatus" be able to broadcast to multiple listeners
I consider that it is a minor change, it should not affect the operation of "serviceStatus"