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 @@ -103,16 +103,15 @@ class CssBoxWidget extends StatelessWidget {
103
103
}
104
104
}
105
105
106
- return Text . rich (
107
- TextSpan (
106
+ return RichText (
107
+ text : TextSpan (
108
108
style: style.generateTextStyle (),
109
109
children: children,
110
110
),
111
- style: style.generateTextStyle (),
112
- textAlign: style.textAlign,
111
+ textAlign: style.textAlign ?? TextAlign .start,
113
112
textDirection: style.direction,
114
113
maxLines: style.maxLines,
115
- overflow: style.textOverflow,
114
+ overflow: style.textOverflow ?? TextOverflow .clip ,
116
115
);
117
116
}
118
117
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