File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,15 @@ class CssBoxWidget extends StatelessWidget {
87
87
return Container ();
88
88
}
89
89
90
- return Text . rich (
91
- TextSpan (
90
+ return RichText (
91
+ text : TextSpan (
92
92
style: style.generateTextStyle (),
93
93
children: children,
94
94
),
95
- style: style.generateTextStyle (),
96
- textAlign: style.textAlign,
95
+ textAlign: style.textAlign ?? TextAlign .start,
97
96
textDirection: style.direction,
98
97
maxLines: style.maxLines,
99
- overflow: style.textOverflow,
98
+ overflow: style.textOverflow ?? TextOverflow .clip ,
100
99
);
101
100
}
102
101
Original file line number Diff line number Diff line change @@ -5,11 +5,7 @@ class FontSize extends LengthOrPercent {
5
5
6
6
// These values are calculated based off of the default (`medium`)
7
7
// being 14px.
8
- //
9
- // TODO(Sub6Resources): This seems to override Flutter's accessibility text scaling.
10
- //
11
- // Negative values are computed during parsing to be a percentage of
12
- // the parent style's font size.
8
+ // TODO calculate from https://w3c.github.io/csswg-drafts/css-fonts-3/#absolute-size-value
13
9
static final xxSmall = FontSize (7.875 );
14
10
static final xSmall = FontSize (8.75 );
15
11
static final small = FontSize (11.375 );
You can’t perform that action at this time.
0 commit comments