Flutter: Plugin to get iso_countries

Often when we develop apps where we need to populate list of countries, search them etc, you may go by adding the data statically or using apis, but here lets use the power that lies with in your mobile phones. Most of the mobile system OS has these information embedded and we can avail those. I encountered a requirement while I was doing a personal project. I managed to create a plugin so that it benifit others, here you go https://pub.dev/packages/iso_countries

Continue Reading

UICollectionViewCells are resetting their size on refresh

Recently I was working on a scrollable tab bar, where I decided to use collectionview with estimatedSize as automatic as the tab titles were dynamic. I used a stackView inside the cell with all proper constraints and used the default flowlayout. Everything worked well unless there was a requirement to reload the tabs and what happened was once the reload happens, size of the cells became wrong, they shrinked suddenly. I could use the sizeForItem api but then I loose the dynamic behavior. Finally below are the steps that I did. I was creating the layout programmatically Set translatesAutoresizingMaskIntoConstraints false …

Continue Reading