Reputation: 359
ElevatedButton.icon(
onPressed: null,
label: Text("Close"),
icon: Icon(Icons.close),
)
As seen in the picture, the icon is on the left, the text is on the right. How can I do the opposite?
Upvotes: 0
Views: 91
Reputation: 172
wrap the
ElevatedButton.icon
with
Directionality
and make direction rtl
Upvotes: 2
Reputation: 1402
It may not be the best solution, but you can switch label
and icon
values.
label: Icon(Icons.close),
icon: Text('Close'),
Upvotes: 0