Font lost in release apk Flutter

Viewed 138

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
1 Answers

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

Related