Comments (3)
TL;DR:
StreamBuilder<BonsoirBroadcastEvent>(
stream: broadcast?.eventStream,
builder: (context, snapshot) {
if (snapshot.data?.type ==
BonsoirBroadcastEventType.BROADCAST_STARTED) {
var port = snapshot.data?.service?.port;
return Text("Service running at port: $port");
}
return SizedBox();
},
)
caused the crash, why this happened?
from bonsoir.
why this happened?
Well, the error speaks for itself : there's a problem with a @UiThread
method triggered by this line... I think we can fix it by following flutter/flutter#34993 or something like https://stackoverflow.com/questions/57447702/flutter-plugin-methods-marked-with-uithread-must-be-executed-on-the-main-thre.
I'm gonna refactor this plugin anyway (when I'll have more free time, so starting from may 2th 🤤), so I'll fix this error as well.
from bonsoir.
Thank you !!!
from bonsoir.
Related Issues (20)
- Example page is not relevent HOT 1
- Crashes related to messages being sent from native to Flutter on non-platform thread HOT 4
- Customise hostname HOT 5
- IP Address Return HOT 3
- Crash when TXT record contains empty properties HOT 2
- java.net.SocketTimeoutException: Poll timed out leads to crash on android few seconds after discovering service HOT 6
- iOS cannot discover a host running on Windows HOT 7
- normalizeType error HOT 4
- Error Redeclaration: BonsoirService HOT 1
- Scan for all the mDNS devices in the network HOT 7
- How can I run this on native android? HOT 8
- Does not work for Flutter-Tizen project HOT 1
- [macOS/windows] Random crash when starting and stopping discovery HOT 8
- Specific characters are missing HOT 2
- Crashes on iOS caused by DNSServiceProcessResult HOT 2
- Broadcast on specific interface HOT 2
- java.util.ConcurrentModificationException is throwed by BonsoirServiceDiscovery.kt HOT 2
- How to get the IP of the resolved service? HOT 4
- what is this error code 4 ? HOT 1
- [Windows] Crash when BonsoirDiscovery start failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bonsoir.