Flutter - How do I compute a heavy task that includes a future without blocking the UI?

I'm creating an app that fetches posts from the internet as json. I parse the json into Post objects in flutter using a factory. A Post object includes a title, body a...

Flutter: memory leak with isolate (compute)

I see memory leak every time I call compute() in my Flutter app, which is basically just a convenient way to spawn an isolate as far as I understand. My app memory foo...

Dart / Flutter: async behaviour of an Isolates top level function

Aye Aye good people, I'm experiencing a weird behavior when using the top level function of an isolate asynchronously; you can find example code <a h...

Spawning Isolates in for loop and processing parallelly in Dart

<pre><code>for(int i=0;i&lt;2;i++){ ..............preprocessing(pr)........... ..... = await someFunc(someData[i]) (this line spawns off new Isolate) ..............

What thread / isolate does flutter run IO operations on?

In flutter when using the http package or doing general IO operations for example <pre><code>import 'package:http/http.dart' as http; http.Response response = a...

Flutter compute function not called if parameter is not a primitive?

I tried to send a Map to a compute, but computer is never called. The strange point is if I replace Map with int, it works: <pre><code>void A() { var map=Map(...

Sqflite flutter communicating with main isolate

A number of plugins (flutter_uploader, workmanager etc) call a top level static handler in dart using PluginUtilities.getCallbackHandle which runs from a separate isol...

Flutter compute function not compiling

I have a repository class (check below) that calls APIs through the <code>HttpService</code> class. I'm receiving historical data that contains 1000s of data objects....

flutter - decodeImageFromPixels can I use it in multiple isolates, it takes to long as it is

decodeImageFromPixels takes a long time to process and image, for example on a generation 2 iPad the full screen 1366 by 1024 takes around 25mSec. I need to reduce the...

Flutter Isolate receives only the initial message

I'm trying to use an <code>Isolate</code> that will send a request, so as not to block the main thread/isolate. After using so, the function of the spawned <cod...

Dart isolate is very slow when running a function that returns a very long list

In my Flutter project for Windows, I use the <code>compute</code> function to run some code in an <code>Isolate</code>, in order to avoid freezing the user interface.<...

Dart- Isolates are very slow when working with lists

I want to generate a list of 300 items from a String however when this task is divided into 3 isolates,where each isolate is generating a list of 100 items it takes ju...

flutter_beacon - Beacon Ranging / Monitoring process run in background

I have used flutter_beacon Plugin to scan the BLE devices currently it is working fine. I have already implemented the example of plugin's documentation <a hre...

Why doesnt the isolate receive the stop message?

The UI shows two button: One button to start an isolate, and a second button to stop it at next occasion. The UI (widget) code looks like this: <pre><code>SendPort...

Determine the type of error thrown by a function executed by compute

In code like the following, <code>_decodeJson</code> throws a <code>FormatException</code>. <pre class="lang-dart prettyprint-override"><code>final invalidJsonStri...