Compare commits
24 Commits
Author | SHA1 | Date |
---|---|---|
|
76f977bc50 | 21 hours ago |
|
5a33bec6bd | 21 hours ago |
|
087813eaae | 1 week ago |
|
e50ef9b189 | 1 week ago |
|
699f906bf1 | 1 week ago |
|
8dc5847c6c | 1 week ago |
|
1e68789a8c | 1 week ago |
|
f11a75dfb7 | 1 week ago |
|
d4ff17201e | 1 week ago |
|
cea2f6d8a4 | 1 week ago |
|
f7afd6fd15 | 1 week ago |
|
54dee9c291 | 2 weeks ago |
|
a2b28e199d | 2 weeks ago |
|
98262a473f | 2 weeks ago |
|
ec8d08ff07 | 2 weeks ago |
|
c894456fe6 | 3 weeks ago |
|
dd9722646e | 1 month ago |
|
a01f9d3786 | 1 month ago |
|
c05a3d99a6 | 1 month ago |
|
d14c2c5d36 | 1 month ago |
|
1db6dc717a | 1 month ago |
|
e337e93ac7 | 1 month ago |
|
2eda1d18d2 | 2 months ago |
|
d68b0b5251 | 2 months ago |
After Width: | Height: | Size: 241 KiB |
Before Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 113 KiB |
Before Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 199 KiB |
Before Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 179 KiB |
Before Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 179 KiB |
@ -1,51 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
extension TextExtension on Text {
|
||||
Text withColor(final Color color) => Text(
|
||||
data!,
|
||||
key: key,
|
||||
strutStyle: strutStyle,
|
||||
textAlign: textAlign,
|
||||
textDirection: textDirection,
|
||||
locale: locale,
|
||||
softWrap: softWrap,
|
||||
overflow: overflow,
|
||||
textScaleFactor: textScaleFactor,
|
||||
maxLines: maxLines,
|
||||
semanticsLabel: semanticsLabel,
|
||||
textWidthBasis: textWidthBasis ?? textWidthBasis,
|
||||
style: style != null
|
||||
? style!.copyWith(color: color)
|
||||
: TextStyle(color: color),
|
||||
);
|
||||
|
||||
Text copyWith({
|
||||
final Key? key,
|
||||
final StrutStyle? strutStyle,
|
||||
final TextAlign? textAlign,
|
||||
final TextDirection? textDirection,
|
||||
final Locale? locale,
|
||||
final bool? softWrap,
|
||||
final TextOverflow? overflow,
|
||||
final double? textScaleFactor,
|
||||
final int? maxLines,
|
||||
final String? semanticsLabel,
|
||||
final TextWidthBasis? textWidthBasis,
|
||||
final TextStyle? style,
|
||||
}) =>
|
||||
Text(
|
||||
data!,
|
||||
key: key ?? this.key,
|
||||
strutStyle: strutStyle ?? this.strutStyle,
|
||||
textAlign: textAlign ?? this.textAlign,
|
||||
textDirection: textDirection ?? this.textDirection,
|
||||
locale: locale ?? this.locale,
|
||||
softWrap: softWrap ?? this.softWrap,
|
||||
overflow: overflow ?? this.overflow,
|
||||
textScaleFactor: textScaleFactor ?? this.textScaleFactor,
|
||||
maxLines: maxLines ?? this.maxLines,
|
||||
semanticsLabel: semanticsLabel ?? this.semanticsLabel,
|
||||
textWidthBasis: textWidthBasis ?? this.textWidthBasis,
|
||||
style: style != null ? this.style?.merge(style) ?? style : this.style,
|
||||
);
|
||||
}
|