how to pass data from websocket to UI in Flutter

i have a file "socket.dart" that connects to the irc server and sends the messages(or events) to a "messageHandler.dart" that parse the irc message to a dart class and classify it(it can be a text message, a change in the room, etc), now i want to send the message to my UI and i have questions: -Should i use BLoC or Provider, or just a Stream (*Messages can be deleted or modify). -wich widget make more sense to display the messages (each channel has thousands of users).

*socket im using is link

I'm new to Dart, Flutter and Mobile App programing. Maybe should i use React Native ? i have been trying to figure this out for like 1 weeks.



Read more here: https://stackoverflow.com/questions/64950307/how-to-pass-data-from-websocket-to-ui-in-flutter

Content Attribution

This content was originally published by Cyberiah at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: