I have a custom table and in its rows there is such a widget row (row in row C: ) and I can’t figure out how to make them centered, and not as in the screenshot :C
These properties don’t help :C
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
Expanded(
child: Row(
children: [
Text(
item.versionStatus == MockVersionStatus.complete ? 'ready' : 'load',
style: TextStyleBook.paragraphP2,
),
if (item.versionStatus != MockVersionStatus.complete)
const SizedBox(width: 10,),
if (item.versionStatus != MockVersionStatus.complete)
const ThreeDotsAnimation(),
],
),
),
2
Answers
I’m not sure if I understand what you are asking here. why are those properties not working for you, Are you using them properly?
Check this example to see if it helps. Notice you can change how you split the vertical space in the Column, and the horizontal space in the Row
Take a look at this example:
I didnt get what you mean by centering it.
If you mean horizontally they are not centered, you can check using the inspector, the space they cover. But they seems centered to me 😛
Not related to the question but you dont need the same if statement twice, you can use it like this: