【发布时间】:2021-10-04 04:03:57
【问题描述】:
这是我的代码
RichText(
text: TextSpan(children: [
TextSpan(
text: 'flutterABC',
style: TextStyle(
fontSize: isDesktop(context) ? 64 : 32,
fontWeight: FontWeight.w800)),
TextSpan(
text: 'flutterABC',
style: TextStyle(
fontSize: isDesktop(context) ? 64 : 32,
fontWeight: FontWeight.w800,
color: Colors.indigo))
]),
),
像这样。我使用 RichText 和 TextSpan。 当我在 chrome 中运行时,我无法控制对齐 如果 'flutterABCflutterABC' 是一行 > 对齐是中心。 但是如果两行 > align 是开始..
【问题讨论】: