Home > Mobile >  Break and wrap widget to next line in a row but start from extreme left of parent widget
Break and wrap widget to next line in a row but start from extreme left of parent widget

Time:07-02

I want to achieve this layout enter image description here

I used RichText to do this earlier(enter image description here

and when i use a Wrap Widget this happens which i dont need either enter image description here

CodePudding user response:

try this way,

  RichText(text: TextSpan(
                 children: [
                      WidgetSpan(child: Container()),
                      TextSpan(text: 'hs dhjfb jkwbfkjw hkjfhkwjk jwjbjfwkj wb')
                           ]
                        ))
  • Related