HomeiOS Developmentandroid - The way to load Pictures Successfully in Flutter

android – The way to load Pictures Successfully in Flutter


I’ve a flutter app that has a display screen the place I’m displaying numerous totally different pictures utilizing a ListView.Builder(). I ask the person to pick the pictures both regionally or by social media platforms and after the person selects the pictures they go on to the picture show display screen the place I shall be displaying the pictures in a ListView.Builder().
The app works nice for sure variety of pictures, however when the variety of pictures will increase the picture show display screen tends to hold and sometimes instances simply CRASH !!.
I’ve checked out methods to unravel this and got here throughout the cacheWidth and cacheHeight properties, however after I use the properties the pictures don’t look unique however as a substitute seems to be both stretched, and is off dimensions (Many of the pictures).I even have an isolate that runs within the background which uploads the pictures to firestorage.
What may very well be the precise drawback, is it the pictures as a result of which reminiscence leak is occurring or is it due to one thing else ?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments