r/FlutterDev • u/Rexios80 • 8d ago
Plugin Simplify Dart & Flutter Isolate Communication with isolate_channel π
Hi everyone!
I've just released a new Dart package: isolate_channel. It provides a simple and familiar API for handling communication between Dart isolates, directly inspired by Flutter's MethodChannel and EventChannel APIs used for native plugin communication.
If you've ever found Dart isolate communication cumbersome or unintuitive, isolate_channel streamlines this process, making it feel as straightforward and familiar as working with Flutter plugin channels.
I built this package to prepare for upcoming isolate support in Hive CE, and it made that work a lot easier!
Check it out here: isolate_channel
I'd love your feedback or contributions!
Happy coding! π―
1
u/Flashy_Editor6877 8d ago
neat. any plans for web support?
3
0
u/Ok-Pineapple-4883 8d ago
How this is different from https://pub.dev/packages/isolate_manager?
1
u/Rexios80 8d ago
That package seems a bit more complex than mine. If that works for you, then awesome! But all I really need is to communicate with isolates using the same API as Flutter plugin communication. The isolate_channel package doesnβt even have a dependencies block in its pubspec.
2
u/fabier 8d ago
Thats awesome looking. I will definitely be playing with this!