feat: 修改macos兼容

This commit is contained in:
2025-11-28 06:41:05 -08:00
parent c058c2cea6
commit 9302764802
7 changed files with 75 additions and 589 deletions
@@ -157,8 +157,8 @@ class _KRHomeViewState extends State<KRHomeView> {
children: [
// 1. 自定义 Checkbox 的方框外观
Container(
width: 20.w,
height: 20.w,
width: 20,
height: 20,
decoration: BoxDecoration(
color: controller
.isQuickConnectEnabled.value
@@ -176,18 +176,18 @@ class _KRHomeViewState extends State<KRHomeView> {
.isQuickConnectEnabled.value
? Icon(
Icons.check,
size: 14.w,
size: 14,
color: Colors.black,
)
: null,
),
SizedBox(width: 8.w),
SizedBox(width: 8),
// 2. “闪连”标签
Text(
'闪连',
style: TextStyle(
color: Colors.white,
fontSize: 20.sp,
fontSize: 20,
fontWeight: FontWeight.w600,
),
),
@@ -196,7 +196,7 @@ class _KRHomeViewState extends State<KRHomeView> {
),
),
// --- 问号图标和点击弹窗区域 ---
SizedBox(width: 6.w), // 文字和问号图标之间的间距
SizedBox(width: 6), // 文字和问号图标之间的间距
GestureDetector(
onTap: () {
HIDialog.show(
@@ -208,8 +208,8 @@ class _KRHomeViewState extends State<KRHomeView> {
child: KrLocalImage(
imageName: 'question-icon', // 图片名称
imageType: ImageType.svg, // 图片类型
width: 24.w,
height: 24.w,
width: 24,
height: 24,
color: Colors.white, // 让图标颜色与边框协调
),
),