Apple San Francisco font face in Flutter

Viewed 2563

I want to implement an app using Flutter, and I want to use the system default font faces for Android and iOS.

The design I got to implement, has multiple font weights and I can't seem to find how to use other font weights for iOS devices (the font face being San Francisco), other than .Regular and .Bold. Is there a way to use multiple font weights and get them to be displayed when viewed on iOS devices?

Thanks!

1 Answers

make sure to download the font pack with all weights and then declare the font weight after the font asset in pubspec.yaml like so :

- family: SanFrancisco
  fonts:
    - asset: fonts/SanFrancisco-Bold.ttf
      weight: 700
Related