Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d46cfde

Browse filesBrowse files
fix: Fix text-transform inheritance (#1470)
1 parent eb9845f commit d46cfde
Copy full SHA for d46cfde

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Open diff view settings
Collapse file

‎lib/src/style.dart‎

Copy file name to clipboardExpand all lines: lib/src/style.dart
+7-1Lines changed: 7 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.