-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Closed
flutter/engine
#20370Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: typographyText rendering, possibly libtxtText rendering, possibly libtxtcustomer: mulligan (g3)frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Repro:
Container(
padding: EdgeInsets.all(matGrid * 2),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('LTR Text and Widget Spans (Default TextWidthBasis):',
style: Theme.of(context).textTheme.caption),
Container(
decoration: BoxDecoration(border: Border.all(width: 1)),
child: Text.rich(TextSpan(children: [
TextSpan(text: 'this is a line of text with words---'),
WidgetSpan(
child: SizedBox(
width: 20,
height: 20,
child: Container(color: Colors.green)))
]))),
Container(
decoration: BoxDecoration(border: Border.all(width: 1)),
child: Text.rich(TextSpan(children: [
TextSpan(
text:
'this is a line of text with words followed by areallylongwordthatneedstobewrapped---'),
WidgetSpan(
child: SizedBox(
width: 20,
height: 20,
child: Container(color: Colors.green)))
]))),
Text(
'LTR Text and Widget Spans (TextWidthBasis.longestLine):',
style: Theme.of(context).textTheme.caption),
Container(
decoration: BoxDecoration(border: Border.all(width: 1)),
child: Text.rich(
TextSpan(children: [
TextSpan(
text: 'this is a line of text with words---'),
WidgetSpan(
child: SizedBox(
width: 20,
height: 20,
child: Container(color: Colors.green)))
]),
textWidthBasis: TextWidthBasis.longestLine)),
Container(
decoration: BoxDecoration(border: Border.all(width: 1)),
child: Text.rich(
TextSpan(children: [
TextSpan(
text:
'this is a line of text with words followed by areallylongwordthatneedstobewrapped---'),
WidgetSpan(
child: SizedBox(
width: 20,
height: 20,
child: Container(color: Colors.green)))
]),
textWidthBasis: TextWidthBasis.longestLine))
]));produces the following output (only relevant widgets are the ones with green boxes. The customer reported two separate issues with the same screenshot. The other one is filed here: #62550.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: typographyText rendering, possibly libtxtText rendering, possibly libtxtcustomer: mulligan (g3)frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
