Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to add fonts in flutter

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.

like image 665
Sami Ullah Avatar asked Dec 08 '18 15:12

Sami Ullah


1 Answers

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

like image 116
anmol.majhail Avatar answered Nov 01 '22 00:11

anmol.majhail