Home > Software engineering >  Font lost in release apk Flutter
Font lost in release apk Flutter

Time:02-03

How to make Google Fonts not lost when compiling an apk? When I have the build apk it is correct but when I release it it has the default font:

release apk build apk
release apk build apk

CodePudding user response:

This is because google font requires internet access to load the font.

To give your release app version internet access, you have to add this line:

<uses-permission android:name="android.permission.INTERNET" /> 

outside the <application> tag in your AndroidManifest.xml

Project Folder > android > app > src > main > AndroidManifest.xml

  •  Tags:  
  • Related