How can I wrap multiple Widgets inside a Row to act like a single Widget?
widget order:
Column -> Row -> Widgets
Here is the snippet of my code:
Column(
children: [
Row(
children: [
Text(
'To prevent possible overflow, this particularly long text should be properly wrapped and formatted.'),
Text(
'To prevent possible overflow, this particularly long text should be properly wrapped and formatted.'),
Text(
'To prevent possible overflow, this particularly long text should be properly wrapped and formatted.'),
],
),
],
),
Current output:
Any suggestions on how to solve this problem would be appreciated.
2
Answers
Based on your desire UI, it will be a single
Text
widget. You can concatenate the string like$data1 $data2
, it will merge the text.If you have multiple textStyle, you can use RichText widget.
Find more about String and RichText
Hi i know this answer must be confusing but i find a way to do it
creating a variable to the desc will automatically manage the overflow