简体   繁体   中英

How to Wrap text widgets next to each other in Flutter

在此处输入图像描述

Each number in between represents starting of a new widget. Is this possible in Flutter?.

Try this bro

Text.rich(TextSpan(children: [
  TextSpan(
     text: "... ١",
     recognizer: TapGestureRecognizer()
        ..onTap = () {}
  ),
  TextSpan(
     text: "... ٢",
     recognizer: TapGestureRecognizer()
        ..onTap = () {}
  ),
]), style: TextStyle(
  // ...
),)

yes its possible in flutter you can use Wrap widget

Wrap(
  children: <Widget>[
    Text('Text 1'),
    Text('Text 2'),
    Text('Text 3')
  ],
)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM