Skip to content

Commit d46cfde

Browse files
fix: Fix text-transform inheritance (#1470)
1 parent eb9845f commit d46cfde

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/src/style.dart

+7-1
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,12 @@ class Style {
228228
///
229229
TextOverflow? textOverflow;
230230

231+
/// CSS Attribute "`text-transform`"
232+
///
233+
/// `uppercase`, `lowercase`, `capitalize`, and `none` supported.
234+
///
235+
/// Inherited: yes,
236+
/// Default: `none`
231237
TextTransform? textTransform;
232238

233239
Style({
@@ -268,7 +274,7 @@ class Style {
268274
this.alignment,
269275
this.maxLines,
270276
this.textOverflow,
271-
this.textTransform = TextTransform.none,
277+
this.textTransform,
272278
}) {
273279
if (alignment == null && (display?.isBlock ?? false)) {
274280
alignment = Alignment.centerLeft;

0 commit comments

Comments
 (0)