我想使用墨水井小部件将悬停 colored颜色 属性添加到容器中,但容器有自己的边界半径,当我使用墨水井使用悬停属性时,它会采用其自定义形状,并在悬停在墨水井上之后使其看起来像矩形.
以下是我的代码片段:
InkWell(
onTap: () {},
hoverColor: Colors.red[200],
child: Container(
width: 70.w,
height: 60.h,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
),
child: Row(
children: [
Image.asset(
'images/call.png',
height: 30.h,
),
Text(
'Call',
style: white,
),
],
),
),
),
我希望我能让你很好地理解这个问题
请帮助我解决问题或提供替代方案.