小智 9
您可以像这样使用FontFeaturea 中的属性TextStyle:
import "dart:ui";
Text('This is a Google Font',
style: GoogleFonts.lato(
textStyle: TextStyle(fontFeatures:[FontFeature.enable('smcp')], color: Colors.blue, letterSpacing: .5),
//smcp as in small caps
),
),
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1231 次 |
| 最近记录: |