'google_fonts is not working in flutter after app build
when I am in debug mode, it's just working fine, but after app build, Google fonts is not working on the mobile, the app is using the regular font.
I checked and did all available steps to solve the issue,yet I failed!
Steps I did:
In my pubspec.yaml file, I added dependencies as instruction and added
import 'package:google_fonts/google_fonts.dart';in every file.Then I ran the "$flutter pub get" Command,then I restarted the IDE, when it returned the same result, then I did the whole procedure with the PC restart, but nothing changed.I checked the android manifest file, and the line
<uses-permission android:name="android.permission.INTERNET"/>is already there.Switched the IDE VS code to android studio, still not working.
I deleted every related file from mobile, and restarted the mobile, i did a "Clean installation(?!)" with internet connection, but no joy!
Is there any way to solve the issue?
Solution 1:[1]
You need to download the font files from fonts.google.com and place them in a directory in top level directory of your application. Also configure them jn pubspec.yaml as assets.
Follow the steps mentions here https://pub.dev/packages/google_fonts
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sobhan Jachuck |
