I have a row im trying to align correctly. It holds two cards id like to be spaced evenly, and an icon button aligned to the right side of the row.
With just the cards using the following code,
Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Card(...), Card(...), ], ), But When i add an icon button with the following code
Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Card(), Card(), Spacer(), IconButton( icon: Icon(Icons.close), onPressed: () { Navigator.of(context).pop(); }, ), ], ), Any idea what I'm doing wrong? Thanks!


