Geek Culture
Published in

Geek Culture

Loading New Fonts in Flutter App After Deployment — .ttf, .otf

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. As a developer, one can check if the font already…

--

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Recommended from Medium

Why Are SOLID Principles Vital When Designing Software in the Object-Oriented World? | Bridge Blog

“Defend the Web” write-up (Squashed image / Stego — cracking steganography)

18 Feb 2021 Dynamic Programming (6)

Rust: Making HTTP Requests And Handling Responses by Using reqwest

First week back

Zoho CRM Overview & Guide For the Beginners (2018) — Data2CRM

Create GCP Pub/Sub Subscription with specific credentials

What’s New in Swift(2018)

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
Hamza Mateen

Hamza Mateen

All about Flutter Application Development and Data Analytics.

More from Medium

Flutter Auth Flow | Firebase_auth mail auth

Email Link (Password-less) Authentication with Firebase & Flutter

Flutter — Cart Calculator App: Part 3

A Framework for Flutter Part 2