Flutter Quick Tip: Using the "mounted" property | Flutter Developers must Know
ฝัง
- เผยแพร่เมื่อ 10 ก.ย. 2024
- #flutter #mounted #setstate
In this Flutter Quick Tip Tutorial, we are going to take a look at using the "mounted" property which is absolutely essential to know for Flutter Developers. This can help you to prevent a lot of memory leaks in your Flutter Mobile Apps and help you solve the error such as setState called after dispose.
👉 Flutter Docs: api.flutter.de...
🔥 Auto-Generate Flutter Custom Paint Code TRY THIS FREE TOOL👇:
👉 Flutter Shape Maker: fluttershapema...
🔥 Learn About the Most Important Widgets in Flutter 👇:
👉 Widget Essentials Series: bit.ly/3GpfiYw
👉🏻 Product Hunt: www.producthun...
(Your UPVOTE Means a lot! 🙌)
If you find this video useful consider Supporting @RetroPortal Studio :
👉 Buy Me a Coffee: www.buymeacoff...
👉 Patreon: / retroportalstudio
Social Links @RetroPortal Studio :
👉 Twitter: / theretroportal
👉 Medium: / retroportalstudio
👉 Instagram: / retroportalstudio
👉 Patreon: / retroportalstudio
👉 GitHub: github.com/ret...
If you like the tutorial, please hit the LIKE and Subscribe button and also consider supporting me on Patreon or Buy Me a Coffee for More Flutter Tutorial on RetroPortal Studio.
Thank you for Watching! Happy Coding :)
Those type of short videos adressing simple yet very common probelms are the most useful videos for developers, thank you
Wooo I didn't know the override solution I always wrap setState into the condition , thanks so much man... Amazing explanation! 😍😍😍
Fantastic. Easy and clear. Thanks !
one of the best channels , straight through , great topics , pure linear knowledge ... keep it up you are doing great
Freaking Matrix. I saw your video yesterday and today I got this error for the first time!!! Awesome. Thanks man
Perfect Explanation.
Short, clear and very useful ! Perfect one here 👌
Thank you so much, I've been getting this error for 2 days
wow. Thank you. the for overriding setstate() was amazing closing note.
You should create more of such content!
Thanks for this amazing video, really a neat trick to override the setState, never knew that was possible.
Thank you very much :D
Learnt something useful today thanks.
I always got this error 😃. Very helpful.
Well explained
Terimakasih Sharing videonya sangat bermanfaat salam sukses dan sehat selalu ya
Short, clear and very useful ! Perfect one here
I glad I've met you
Great topics
To the point Solutions, Excellent work !!
Very good and well explained. Thanks.
thank you so much
Very useful
thanks!! useful and short.. like a shot of knowledge..in the middle of the brain hahaha
I love your channel 💓
Perfect as usual bro...thank you
thank you, great tip!
Thanks
In this case, do we need to override within each class?
Is there any way we can set it globally?
Wonderful. Thank you for this helpful tip
Thanks for the info!
Thanks!
Thank you so much bro for this❤❤
Cool trick ! Thanks :)
Bro Please restart making a new video. Your content is so good what flutter developer should to learn. Please make video on state management(Bloc, GetX, Provider....) on real life related project. And please comeback and make a video😪😪
How would you cancel the api call instead in dispose /destroy method ??
Great trick Thanks.
Just what i needed :)
Great Info.
Super Information .👌👌👌
thank you
So much helpfull 👏🙌
why is not the defailt in flutter?
Great tip! I didn’t know about this property
I think we should add it on baseview widget of MVVM provider architecture when setting viewstate to busy or idle
@@markdioneeb8997 We can add it but not for idle and busy. won't work for that
@@FilledStacks noted, btw I thoroughly studied your awesome mvvm architecture the provider + getit version and still sticking to it even if there's already stacked package, I was overwhelmed with all the features I hope u can provide a working example of every feature of the package, a simple counter would be very helpful. Thank you.
@@markdioneeb8997 Hey, i built 2 series of howto use stacked. it's exactly the same, and on the readme there's an example :)
I knew it from andrea course animation master class
Hallo Mr, i'm Roberto from jakarta,
I am still a beginner who just wants to learn to be an Android application developer.
I'm still confused. For example, if you make an Indonesian versus English dictionary application and other languages, or make a holy book, are the vocabulary lists or long verses written under the coding, like during UI design, or are they called from a special repository? because if a list of vocabulary words or a large number of verses from the holy book are inserted per sentence under the text wedges, it definitely requires a lot of page space.
Can you please give a basic example of making a language dictionary or holy book application?
I've been looking for it for a long time in the Indonesian Flutter programmer tutorial but haven't found a video that specifically explains my question.
👍
never encountered this when i used bloc, im curious why
Hello, can i use some library to edit my image(grayscale, split text in image) after i import it from ImagePicker library
recently i saw it
Why google developers did not add it in setState function default?
Bhai flutter shape maker flutter web hai fir bhi fast load ho jata hai or mera flutter web project me release me bhi white screen aata hai initially 5-6 seconds.
How to fix ?
im facing same issue in statefulbuilder check for mounted variable as described in video is not working in statefulbuilder kindly make a video to solve same problem inside statefulbuilder
why dont flutter make it a default behavior of setState?
Hm, but why mounted isn't by default as wrapper of setState instead of overriding that?
How to Check mounted in StatefulBuilder
Finally U didn't explain the what the exact mounted keyword will does?
Where is the code
why u r not uploading sir
Hello bro plz upload a sales end 24 hours live timer video tutorials eg: Amazon, flipkart sales end time . Sales end time No video available in TH-cam ..
using a proper state management library, It prevents this error .... never encountered,this is because a state management library like provider, bloc etc decouples the UI and is always disposed properly
I use provider and never had to handle such an issue. Seems weird having to repeat code and handle set state like that in every screen
Why did you stop making videos?
Why it's not the default behavior?
my 1 Million Dollar question is how to check for if mounted when using stateless widget with any state management like GetX or provider
Very ba you left making video just for some money you are getting think about future generations students very bad .
Kindly spare some time : future students will came to know easily this tech stack
Why I'm saying to you is you are good enough in this