Posts

Showing posts from January, 2022

Top 5 tips for flutter performance optimization and following best practices to build your next project.

Image
Ever thought of why your app faces lag/jank on some devices. Let’s get into some key points to improve user experience and performance of your app. This story will focus on some basic and advanced tips to boost your app. So, without wasting any time let’s get started with our first point. 1) Handling Image dimensions to reduce jank Thinking to build next e-commerce app or social media app which requires a lot of image data? Then you might be performing some wrong techniques. Let’s get into some, most of the time you might be picking images by following way. final XFile? imageFile= await picker.pickImage( source: ImageSource.gallery, ); But the above method is incomplete as you should always specify maxWidth and maxHeight attribute while picking the image. The reason behind it is that when you pick an image without these attributes than the image picked might be of a large dimension (2400X1600) which is a very hu...