I have a Row widget inside a Card, and I want to divide the Row perfectly in half the width of the card and put some centered text in each half. So the separation in half of the row has to be fixed and each text has to be centered in the half where it is. Here is an example:
Any ideas?
Try this
Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Expanded(child: Center(child: TextButton(...))), VerticalDivider(width: 1.0), Expanded(child: Center(child: TextButton(...))), ], ),
1.4m articles
1.4m replys
5 comments
57.0k users