Answers for "flutter text if no space new row"

1

text should come below if space not available row flutter

//wrap with expanded which text you want to come below if space not availabe in top row
Row(
	mainAxisAlignment: MainAxisAlignment.spaceBetween,
    children: [
    Expanded(
    child: Text(
	    mainProduct.name,
    	),
    ),
    secondWidget(),
    ],
),
Posted by: Guest on February-26-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language