//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(),
],
),