我在颤动的移动应用程序中添加了圆形按钮,但是当我点击或单击它们时,这些按钮将转换为方形按钮。我在下面添加我的代码,请让我知道我做错了,我们将非常感谢您的帮助。谢谢,
child: Material(
color: Colors.black,
shape: CircleBorder(),
child: Center(
child: Ink(
decoration: const ShapeDecoration(
color: Colors.white12,
shape: CircleBorder(),
),
child: IconButton(
icon: Icon(Icons.home),
color: Colors.white70,
onPressed: () {
bool isGR = Game.of(context).isGameRunning();
if (isGR) {
Game.of(context).pause();
}
TapboxA.of(context).backToSplash();
},
),
),
),
),
我也在下面添加图片: