-
Notifications
You must be signed in to change notification settings - Fork 28.6k
something wrong with TextStyle.TextDecoration params #25607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
if the text content without (") at the content head ,It shows single underline ,like this "长城环球通自由行信用卡美加澳线下消费返现",it is ok。Another,if the text is "环球精彩 一卡尽享境外消费满额最惠",it shows double underline ,but if is "环球精彩一卡尽享境外消费满额最惠"(without Blank bewteen 彩 and 一),it show single |
Please add the output of |
same issue happen to me. and not only ScreenshotsCodeconst roman = "ABCD";
const korean = "가나다라";
const chinese = "诶比西迪";
const japanese = "あいうえ";
const space = " ";
final style = TextStyle(
color: Colors.black,
fontSize: 30.0,
decoration: TextDecoration.underline, // or overline
);
MaterialApp(
home: Scaffold(
body: ListView(
children: <Widget>[
Text("Only Korean",),
Text(
korean,
style: style,
),
Padding(padding: EdgeInsets.only(top: 24,)),
Text("With whitespace",),
Text(
korean + space,
style: style,
),
Padding(padding: EdgeInsets.only(top: 24,)),
Text("With Roman",),
Text(
roman + korean,
style: style,
),
Padding(padding: EdgeInsets.only(top: 24,)),
Text("With Japanese",),
Text(
korean + japanese,
style: style,
),
Padding(padding: EdgeInsets.only(top: 24,)),
Text("With Chinese",),
Text(
korean + chinese,
style: style,
),
Padding(padding: EdgeInsets.only(top: 24,)),
Text("With All",),
Text(
roman + korean + chinese + japanese,
style: style,
),
Padding(padding: EdgeInsets.only(top: 24,)),
Text("Common TextStyle",),
RichText(
text: TextSpan(
style: style,
children: [
TextSpan(text: roman,),
TextSpan(text: korean,),
TextSpan(text: chinese,),
TextSpan(text: japanese,),
]
)
),
Padding(padding: EdgeInsets.only(top: 24,)),
Text("Each TextStyle",),
RichText(
text: TextSpan(
children: [
TextSpan(text: roman, style: style,),
TextSpan(text: korean, style: style,),
TextSpan(text: chinese, style: style,),
TextSpan(text: japanese, style: style,),
]
)
),
],
),
),
) flutter doctor
|
Duplicate of #30041 |
thank you @jason-simmons ! Screenshot on LGM V30Screenshot on iOS(iPhone XS Max) Simulatorcode
flutter doctor
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I want a single underline but it shows double underline


It shows on my HuaWei7x ,but My friends doesn't show this
The text was updated successfully, but these errors were encountered: