在Flutter中,我在使用
错误信息为:
crossAxisAlignment: CrossAxisAlignment.baseline
时遇到了错误。错误信息为:
Failed assertion: line 3791 pos 15: 'crossAxisAlignment != CrossAxisAlignment.baseline || textBaseline != null': is not true.
代码::
Row(
crossAxisAlignment: CrossAxisAlignment.baseline,
children: <Widget>[
Text(
'192',
style: kBoldNumberText,
),
Text(
'cm',
style: kLabelText,
)
],
)