This project demonstrates the use of isolates in Flutter to improve app performance.
It consists of three labs:
- Main Isolate Execution: Showcases UI freezing when running time-consuming tasks directly on the main isolate.
- Compute Function: Uses Flutter's
compute
function to move heavy tasks to a separate isolate, preventing UI freezes and improving performance. - Isolate.run: Similar to
compute
, but uses theIsolate.run
API to offload heavy tasks to a background isolate, enhancing performance and responsiveness.
Thanks to json-iterator for the provided data.