unable to add fonts in flutter

Issue

I am trying to add custom fonts in my flutter app. I have added fonts in pubspec.yaml

flutter:
  fonts:
    - family: Quicksand
      fonts:
        - asset: assets/fonts/Quicksand-Regular.ttf

Aslo I have added this in my Text widget

style: TextStyle(
           color: Colors.white,
           fontSize: 80.0,
           fontFamily: 'Quicksand',
           ),

I am not getting any error, but my font is not getting applied.

Solution

Make sure you Re-Build the Project Again – Hot-Restart Won’t work & do run flutter packages get

Answered By – anmol.majhail

Answer Checked By – Marie Seifert (FlutterFixes Admin)

Leave a Reply

Your email address will not be published.