Flutter: App is crashing after using multiple network image

1,065 views
Skip to first unread message

Raju Kumar

unread,
Apr 1, 2021, 3:04:52 AM4/1/21
to Flutter Development (flutter-dev)
My flutter app is crashing when I am using array of imges. It freezes the phone. Please guide me to solve the issue.

Suzuki Tomohiro

unread,
Apr 1, 2021, 8:35:19 AM4/1/21
to Raju Kumar, Flutter Development (flutter-dev)
How many images? If that’s too many to fit in one screen, use ListView.builder.

On Thu, Apr 1, 2021 at 03:05 Raju Kumar <rku...@mindcomgroup.com> wrote:
My flutter app is crashing when I am using array of imges. It freezes the phone. Please guide me to solve the issue.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/6a418f0b-5e6e-4715-a73f-a2737c65fac4n%40googlegroups.com.

Raju Kumar

unread,
Apr 1, 2021, 9:36:13 AM4/1/21
to Suzuki Tomohiro, Flutter Development (flutter-dev)
Sir, I have 500 images approx. and I am using listview. builder. but it freezes the app. I have gone through all the possible causes. Please guide me to handle bulk network images.

Rithesh Saliyan

unread,
Apr 1, 2021, 10:00:33 AM4/1/21
to Raju Kumar, Suzuki Tomohiro, Flutter Development (flutter-dev)
Use pagination, render only displaying images . You can use https://pub.dev/packages/infinite_scroll_pagination package for lazy loading. 

Andy Greenshaw

unread,
Apr 1, 2021, 10:06:30 AM4/1/21
to Rithesh Saliyan, Raju Kumar, Suzuki Tomohiro, Flutter Development (flutter-dev)
How big are the images (in bytes, not pixels)? Are you caching them?

Reply all
Reply to author
Forward
0 new messages