update text extension

null_safety
张萌 4 years ago
parent d4b0af5dce
commit 9cd1d847a1

@ -29,14 +29,14 @@ extension TextExtension on Text {
Text get black65 => Text get black65 =>
Text(this.data, style: this.style?.black65 ?? TextStyle().black65); Text(this.data, style: this.style?.black65 ?? TextStyle().black65);
Text maxLines(int maxLines){ Text lines(int maxLines){
return Text( return Text(
this.data, this.data,
maxLines: maxLines, maxLines: maxLines,
); );
} }
Text overflow(TextOverflow textOverflow){ Text over(TextOverflow textOverflow){
return Text( return Text(
this.data, this.data,
overflow:textOverflow, overflow:textOverflow,

Loading…
Cancel
Save