fontWeight method
字体粗细、正斜等
Implementation
Text fontWeight(FontWeight? weight) {
var newStyle = TextStyle(fontWeight: weight);
return copyWith(style: style?.merge(newStyle) ?? newStyle);
}
字体粗细、正斜等
Text fontWeight(FontWeight? weight) {
var newStyle = TextStyle(fontWeight: weight);
return copyWith(style: style?.merge(newStyle) ?? newStyle);
}