Search code examples
flutterflutter-layoutflutter-dependenciesflutter-webflutter-text

How to Wrap text widgets next to each other in Flutter


enter image description here

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


Solution

  • Try this bro

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