Your Plugin Call Doesn't Need an Isolate

https://hackernoon.imgix.net/images/oYjV9DfW6tUG6V5hOImqT2364b13-2sb3bx1.png

Almost two years ago, I answered a Flutter question on Stack Overflow. OP was resizing and compressing images, his UI was janky, and he'd tried to push the work into an isolate, only to hit a cryptic UnimplementedError. Tricky case, especially back then, and I didn't know the exact answer, so I got curious and started to dig. Long story short, I came up with a proper (as I thought) fix for his exact error. It worked flawlessly, OP was happy. The answer got accepted, even got an upvote, and I moved on. I was happy too, because answering this question was educational for me as well: I finally had a hands-on case with a long-lived isolate, not the most common thing in the simple UI development I was doing at the time.

Last week, I was clearing out an old notes folder and found my scratch file for...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more