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