Recently I faced a weird but challenging and fun requirement. My manager wanted me to give users the ability to choose from a variety of fonts. Initially, I placed up to three font files inside assets and registered them in the pubspec.yaml as tradition. These fonts would be the default ones.

Now, if the user wants to go try fonts that are not part of the apk, he/she can simply get them from our provided list of fonts. The fonts are downloaded the first time they are called. …

Hamza Mateen

Associate Software Engineer - Mobile Application Developer at VentureDive, Karachi.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store