@@ -191,6 +191,8 @@ class Style {
191
191
///
192
192
TextOverflow ? textOverflow;
193
193
194
+ TextTransform ? textTransform;
195
+
194
196
Style ({
195
197
this .backgroundColor = Colors .transparent,
196
198
this .color,
@@ -225,6 +227,7 @@ class Style {
225
227
this .markerContent,
226
228
this .maxLines,
227
229
this .textOverflow,
230
+ this .textTransform = TextTransform .none,
228
231
}) {
229
232
if (this .alignment == null &&
230
233
(display == Display .BLOCK || display == Display .LIST_ITEM )) {
@@ -317,6 +320,7 @@ class Style {
317
320
markerContent: other.markerContent,
318
321
maxLines: other.maxLines,
319
322
textOverflow: other.textOverflow,
323
+ textTransform: other.textTransform,
320
324
);
321
325
}
322
326
@@ -354,6 +358,7 @@ class Style {
354
358
wordSpacing: child.wordSpacing ?? wordSpacing,
355
359
maxLines: child.maxLines ?? maxLines,
356
360
textOverflow: child.textOverflow ?? textOverflow,
361
+ textTransform: child.textTransform ?? textTransform,
357
362
);
358
363
}
359
364
@@ -391,6 +396,7 @@ class Style {
391
396
Widget ? markerContent,
392
397
int ? maxLines,
393
398
TextOverflow ? textOverflow,
399
+ TextTransform ? textTransform,
394
400
bool ? beforeAfterNull,
395
401
}) {
396
402
return Style (
@@ -428,6 +434,7 @@ class Style {
428
434
markerContent: markerContent ?? this .markerContent,
429
435
maxLines: maxLines ?? this .maxLines,
430
436
textOverflow: textOverflow ?? this .textOverflow,
437
+ textTransform: textTransform ?? this .textTransform,
431
438
);
432
439
}
433
440
@@ -447,6 +454,7 @@ class Style {
447
454
this .textShadow = textStyle.shadows;
448
455
this .wordSpacing = textStyle.wordSpacing;
449
456
this .lineHeight = LineHeight (textStyle.height ?? 1.2 );
457
+ this .textTransform = TextTransform .none;
450
458
}
451
459
}
452
460
@@ -561,6 +569,13 @@ enum ListStylePosition {
561
569
INSIDE ,
562
570
}
563
571
572
+ enum TextTransform {
573
+ uppercase,
574
+ lowercase,
575
+ capitalize,
576
+ none,
577
+ }
578
+
564
579
enum VerticalAlign {
565
580
BASELINE ,
566
581
SUB ,
0 commit comments