更新时间:2023-01-27 20:31:53
仅将某些 TextStyle
属性应用于应用程序的子树。您可以使用 DefaultTextStyle
To apply certain TextStyle
properties only to a subtree of your app. You can use DefaultTextStyle
DefaultTextStyle(
child: Container(child: /* your subtree */),
style: TextStyle(color: Colors.red),
),