Flutter Dev’s Post

If your Flutter app has jank due to a heavy computation, use Isolate.run() to move that computation to a new isolate. Watch → https://goo.gle/3JuU7ar #TechniqueOfTheWeek

  • Two rectangles side by side, one with the title "Main isolate" and the other with the title "Worker isolate." The Main isolate rectangle has two smaller rectangles inside it with the labels "Repaint UI," and the Worker isolate rectangle has a smaller rectangle inside it labeled "Expensive Computation."
PoachMe Dev

Chief Executive Officer at PoachMe

16h

Consider using compute() instead, on native platforms is equivalent to Isolate.run() while on web it runs on the main event loop. https://api.flutter.dev/flutter/foundation/compute.html

Like
Reply
Bohdan Honcharuk

Flutter Developer: Large-Scale, Dating, EdTech, Streaming, Healthcare. Lead and Senior Roles, Consulting, Estimate, Technical Recruitment (since 2019), sh scripting: QEMU virtualization (since 2015)

4d

Casually promoting a usage of calculate with runtime cache if someone needs it: https://github.com/bgoncharuck/cached_calc Have a nice day everyone 🙂

Like
Reply
See more comments

To view or add a comment, sign in

Explore topics