创建了一个 IconButton 并响应地定位它。然后用 CircleAvator 小部件包装它。 我期待 circleavator 将被放置在 IconButton 下并且也会响应响应,但 CircleAvator 不会在按钮下对齐,甚至不会响应响应。 这是我的代码-
Positioned(
left: (_width / 2.4) - (_height / 3.5 * 0.30),
top: (_height * 0.5) / 2.35,
child: CircleAvatar(
backgroundColor: colorBlack,
radius: 50.0,
child: IconButton(
icon: Icon(Icons.check_circle),
iconSize: _height / 3.5 * 0.5,
color: loading ? Colors.teal : Colors.red,
onPressed: doConversion),
),
),
这是我的设备输出 - 在此处输入图像描述