Flutter:无法添加 FFShamel 字体
Flutter : can't add FFShamel font
我正在尝试将此字体 (FF Shamel Family Sans One) 添加到我的项目中,但 flutter 的默认字体仍然有效
这是我发布的字体
fonts:
- family: FFShamelFamily
fonts:
- asset: assets/fonts/ArbFONTS-FFShamelFamily-SansOneBold.ttf
- asset: assets/fonts/ArbFONTS-FFShamelFamily-SansOneBook.ttf
并在主要部分
theme: ThemeData(
primarySwatch: Colors.blue,
fontFamily: 'FFShamelFamily',
visualDensity: VisualDensity.adaptivePlatformDensity,
),
谁能告诉我哪里错了!!!
fonts:
- family: FFShamelFamily
fonts:
- asset: assets/fonts/ArbFONTS-FFShamelFamily-SansOneBold.ttf
weight: 700
- asset: assets/fonts/ArbFONTS-FFShamelFamily-SansOneBook.ttf
我正在尝试将此字体 (FF Shamel Family Sans One) 添加到我的项目中,但 flutter 的默认字体仍然有效
这是我发布的字体
fonts:
- family: FFShamelFamily
fonts:
- asset: assets/fonts/ArbFONTS-FFShamelFamily-SansOneBold.ttf
- asset: assets/fonts/ArbFONTS-FFShamelFamily-SansOneBook.ttf
并在主要部分
theme: ThemeData(
primarySwatch: Colors.blue,
fontFamily: 'FFShamelFamily',
visualDensity: VisualDensity.adaptivePlatformDensity,
),
谁能告诉我哪里错了!!!
fonts:
- family: FFShamelFamily
fonts:
- asset: assets/fonts/ArbFONTS-FFShamelFamily-SansOneBold.ttf
weight: 700
- asset: assets/fonts/ArbFONTS-FFShamelFamily-SansOneBook.ttf