feat(client): 表格行添加 hover 高亮效果

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-04-14 00:18:03 +08:00
parent d520fc55bc
commit 08b68af34c
+6
View File
@@ -43,6 +43,12 @@ class DataTableCard extends StatelessWidget {
child: DataTable(
headingRowColor: WidgetStateProperty.all(
const Color(0xFFF0F4FF)),
dataRowColor: WidgetStateProperty.resolveWith((states) {
if (states.contains(WidgetState.hovered)) {
return const Color(0xFFF5F7FF);
}
return null;
}),
headingTextStyle: const TextStyle(
fontSize: 13,
fontWeight: FontWeight.w600,