我想使用墨水池小部件为容器添加悬停颜色属性,但该容器具有自己的边框半径。当我使用墨水池的悬停属性时,它会采用其自定义形状,并在墨水池上悬停后使其看起来呈矩形。
以下是我的代码片段:
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,
),
],
),
),
),
希望我已经让您充分理解这个问题了
请帮我解决这个问题,或者提供一个替代方案。