Ad

Best Way To Use Multiple Custom Fonts In Flutter Web Without Increasing App Size/initial Load Time

I have flutter web application and there almost 25+ fonts need to be used , all font folder size more than 35mb so please suggest me best way to implement all font with consuming memory

Ad

Answer

you can user google font package if those fonts are available in google fonts.

google font flutter

if you are trying to use icons as a fonts like font awesome or other custom font libraries download those libraries as SVG and discard unused icons then use IcoMoon to generate custom font. using that you can also download dart font mappings to use in your app IcoMoon

Ad
source: stackoverflow.com
Ad