-1

在此处输入图像描述

中间的每个数字代表一个新小部件的开始。这在 Flutter 中可行吗?

4

2 回答 2

0

试试这个兄弟

Text.rich(TextSpan(children: [
  TextSpan(
     text: "... ١",
     recognizer: TapGestureRecognizer()
        ..onTap = () {}
  ),
  TextSpan(
     text: "... ٢",
     recognizer: TapGestureRecognizer()
        ..onTap = () {}
  ),
]), style: TextStyle(
  // ...
),)
于 2020-12-27T08:23:30.700 回答
-1

是的,它可能在颤动中你可以使用Wrap 小部件

Wrap(
  children: <Widget>[
    Text('Text 1'),
    Text('Text 2'),
    Text('Text 3')
  ],
)
于 2020-12-27T07:02:07.863 回答