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...

Will ProviderScope and riverpod providers be removed from memory?

<strong>I am confused that will <em>Nested ProviderScope</em> and all <em>Providers</em> be romoved from memory? And is following usecase good practice or bad practice...

Is that necessary to set null for any class instance in dispose() of state class in flutter to avoid holding that class instance in memory?

I am having a class instance(SampleData data) as field in the state class of my widget(SecondRoute). The class instance holds in memory while inspecting using the memo...

ChangeNotifier listeners and dispose. Memory leaks?

I am curious if creation of new objects removes all attached listeners. Here it is simple code: <pre class="lang-dart prettyprint-override"><code>class Notifier ex...

warning with cancel_subscriptions in flutter

i got this warning message while i am using StreamSubscription . Cancel instances of dart.async.StreamSubscription. even though i do cancel it !! <p...

Leak Memory in large Form - Flutter

I’m testing my app because a Leak memmory problem. My app is about a large Form with (134 textformfield). At the begining, it works very good but when i want to use th...

Flutter: Cloud_Firestore giving error FlutterView.send called on a detached view, channel=plugins.flutter.io/cloud_firestore

I am getting this error every time something changes in FireStore: <code>D/FlutterNativeView(21656): FlutterView.send called on a detached view, channel=plugins.flutte...

Preload an image asset in flutter

I'm building a game with flutter. I have around 130-150mo of pictures. And some of them <em>must</em> be preloaded or else the user experience doesn't feels smooth.</p...

Flutter TextFormField validation creates memory leak by creating infinite widgets according to Flutter Performance inspector

Creating a simple Login/Register UI and need to validate Username/password and noticed that on 'Flutter Performance' inspector if I press multiple times on the button...

Does Dart/Flutter have the concept of weak references?

I'm in the early stages of learning <a href="https://www.dartlang.org/" rel="noreferrer">Dart</a> &amp; <a href="http://flutter.io/" rel="noreferrer">Flutter</a>. I'm...

What is the best way to avoid memory leaks when a handler needs BuildContext?

I love Dart and Flutter and garbage collection (GC) works perfectly 99%. However, there are cases when GC cannot recognize that an object is not going to be used any m...

Understanding flutter memory view

I have some trouble understanding flutter memory view. Exploring my app memory snapshot, I see that there are too many instances of some widgets. <a href="https...

App crashing due to memory issue in release mode

I have a Flutter app that keeps crashing on Android and iOS.<br> I don't get any stack trace. The app just minimize on iOS and Android.<br> I only get the crash report...

Flutter images memory does not get gc

I have a page widget to display a long list of images using Image.network() on android device. After a long scroll and gets every image displayed, the memory has gone...

How to display phone gallery images to my grid view

In fact this is a theoretical question in some way because I did achieve this, but have a memory blackout due to loading all images that exist in my phone. The followi...