我正在尝试在工具栏操作 [] 中设置固定大小的 CircularProgressIndicator,但它给了我不合适的大小,
我正在使用的代码,
Scaffold(
appBar: AppBar(
centerTitle: true,
title: Text(Lang.postDetails),
actions: <Widget>[
Container(
width: 16,
height: 16,
child: CircularProgressIndicator(),
)
和我得到的输出,
最佳答案
我自己已经解决了,
如果有人遇到这个问题,只需将您的 Container
包裹在 Center
小部件中,
Center(
child: Container(
width: 16,
height: 16,
child: CircularProgressIndicator()),
)
输出
关于flutter - 如何修复工具栏中的 CircularProgressIndicator() 大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59030021/