My AppBar action IconButton is overflowed.
The likesCount parameter changes over time.
How to prevent overflow dynamically, using IconButton in AppBar actions?
My code:
appBar: AppBar(
actions: [
IconButton(
onPressed: () {},
icon: Row(
children: [
Text("$likesCount"), <---- overflow in big numbers
const Icon(Icons.favorite_border),
],
),
),
],
),