optimize style of peer card

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-08-24 11:01:58 +08:00
parent 7c9f799f05
commit bb64690ac9
8 changed files with 363 additions and 310 deletions

View File

@@ -514,8 +514,10 @@ class ActionIcon extends StatelessWidget {
RxBool hover = false.obs;
return Obx(() => Tooltip(
message: translate(message),
waitDuration: Duration(seconds: 1),
child: InkWell(
hoverColor: is_close ? Colors.red : theme.hoverColor,
hoverColor:
is_close ? Color.fromARGB(255, 196, 43, 28) : theme.hoverColor,
onHover: (value) => hover.value = value,
child: Container(
height: _kTabBarHeight - 1,