@@ -191,6 +191,8 @@ class Style {
191191 ///
192192 TextOverflow ? textOverflow;
193193
194+ TextTransform ? textTransform;
195+
194196 Style ({
195197 this .backgroundColor = Colors .transparent,
196198 this .color,
@@ -225,6 +227,7 @@ class Style {
225227 this .markerContent,
226228 this .maxLines,
227229 this .textOverflow,
230+ this .textTransform = TextTransform .none,
228231 }) {
229232 if (this .alignment == null &&
230233 (display == Display .BLOCK || display == Display .LIST_ITEM )) {
@@ -317,6 +320,7 @@ class Style {
317320 markerContent: other.markerContent,
318321 maxLines: other.maxLines,
319322 textOverflow: other.textOverflow,
323+ textTransform: other.textTransform,
320324 );
321325 }
322326
@@ -354,6 +358,7 @@ class Style {
354358 wordSpacing: child.wordSpacing ?? wordSpacing,
355359 maxLines: child.maxLines ?? maxLines,
356360 textOverflow: child.textOverflow ?? textOverflow,
361+ textTransform: child.textTransform ?? textTransform,
357362 );
358363 }
359364
@@ -391,6 +396,7 @@ class Style {
391396 Widget ? markerContent,
392397 int ? maxLines,
393398 TextOverflow ? textOverflow,
399+ TextTransform ? textTransform,
394400 bool ? beforeAfterNull,
395401 }) {
396402 return Style (
@@ -428,6 +434,7 @@ class Style {
428434 markerContent: markerContent ?? this .markerContent,
429435 maxLines: maxLines ?? this .maxLines,
430436 textOverflow: textOverflow ?? this .textOverflow,
437+ textTransform: textTransform ?? this .textTransform,
431438 );
432439 }
433440
@@ -447,6 +454,7 @@ class Style {
447454 this .textShadow = textStyle.shadows;
448455 this .wordSpacing = textStyle.wordSpacing;
449456 this .lineHeight = LineHeight (textStyle.height ?? 1.2 );
457+ this .textTransform = TextTransform .none;
450458 }
451459}
452460
@@ -561,6 +569,13 @@ enum ListStylePosition {
561569 INSIDE ,
562570}
563571
572+ enum TextTransform {
573+ uppercase,
574+ lowercase,
575+ capitalize,
576+ none,
577+ }
578+
564579enum VerticalAlign {
565580 BASELINE ,
566581 SUB ,
0 commit comments