I am trying to set fixed size CircularProgressIndicator in toolbar actions[] but it is giving me the inappropriate size, the code I am using,
Scaffold(
appBar: AppBar(
centerTitle: true,
title: Text(Lang.postDetails),
actions: <Widget>[
Container(
width: 16,
height: 16,
child: CircularProgressIndicator(),
)
and output I am getting,
I have solved this myself,
If anyone faces this issue just wrap your Container
inside a Center
widget,
Center(
child: Container(
width: 16,
height: 16,
child: CircularProgressIndicator()),
)
Output
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With