flutter - 带有 IconButton 的 CircleAvatar 未居中
问题描述
我想将 CircleAvatar 中的按钮居中,但对于较小的半径,它似乎没有正确居中。
CircleAvatar(
backgroundColor: Colors.blue,
radius: 16,
child: IconButton(
icon: Icon(Icons.add),
color: Colors.white,
onPressed: () {
}
}),
),
这是它的样子:
解决方案
推荐阅读
- r - 如何在 R 中合并 FASTA 文件
- java - 插口 | PersistantDataContainer() 说无法解决
- python - Networkx viz - 如何在以圆形布局绘制节点之前对节点进行排序?
- android - 如何使用android Pdf查看器库在android应用程序中打开PDF页面内的链接
- c# - 如何在 Controller 类中捕获嵌入模型的 IList
- google-chrome - 网站完全屏蔽了开发者工具
- javascript - 为什么 JS 每个函数只运行一次 document.Tastierino.Testo.value?
- php - INSERT INTO 不执行
- javascript - 用户登录时无法将登录按钮更改为动态注销
- symfony - 如何使用 Symfony HttpClient 获取所有中间重定向