Rav*_*mar 5 flutter flutter-layout
我试图在工具栏操作 [] 中设置固定大小的 CircularProgressIndicator,但它给了我不合适的大小,我正在使用的代码,
Scaffold(
appBar: AppBar(
centerTitle: true,
title: Text(Lang.postDetails),
actions: <Widget>[
Container(
width: 16,
height: 16,
child: CircularProgressIndicator(),
)
Run Code Online (Sandbox Code Playgroud)
和我得到的输出,
Rav*_*mar 12
我自己已经解决了这个问题,如果有人遇到这个问题,只需将你的包裹Container在一个Center小部件中,
Center(
child: Container(
width: 16,
height: 16,
child: CircularProgressIndicator()),
)
Run Code Online (Sandbox Code Playgroud)
输出
| 归档时间: |
|
| 查看次数: |
528 次 |
| 最近记录: |