修复:大量的ScreenUtil误用,导致界面可能出现问题

(cherry picked from commit 2829da5267a14a9e0f43ff56060a68f1f8b2ca6a)
This commit is contained in:
2025-11-01 04:32:01 -07:00
committed by speakeloudest
parent 18ec3e36fc
commit b7a78aa76a
13 changed files with 79 additions and 79 deletions
@@ -35,7 +35,7 @@ class KRSearchAreaView extends GetView<KRSearchAreaController> {
onTap: () {}, // 阻止点击事件传递到背景
child: Container(
width: 300.w,
height: 450.w,
height: 450.h,
padding: EdgeInsets.all(16.w),
decoration: BoxDecoration(
color: theme.primaryColor,
@@ -52,7 +52,7 @@ class KRSearchAreaView extends GetView<KRSearchAreaController> {
fontWeight: FontWeight.w500,
color: theme.textTheme.titleMedium?.color),
),
SizedBox(height: 10.w),
SizedBox(height: 10.h),
TextField(
onChanged: (value) => controller.searchQuery.value = value,
decoration: InputDecoration(
@@ -65,11 +65,11 @@ class KRSearchAreaView extends GetView<KRSearchAreaController> {
borderRadius: BorderRadius.circular(8.w),
borderSide: BorderSide.none,
),
contentPadding: EdgeInsets.symmetric(vertical: 10.w),
contentPadding: EdgeInsets.symmetric(vertical: 10.h),
),
style: theme.textTheme.bodyMedium?.copyWith(fontSize: 14.sp, fontFamily: 'AlibabaPuHuiTi-Regular',),
),
// SizedBox(height: 5.w),
// SizedBox(height: 5.h),
Obx(() => Expanded(
child: ListView.builder(
padding: EdgeInsets.zero,
@@ -84,7 +84,7 @@ class KRSearchAreaView extends GetView<KRSearchAreaController> {
},
child: Container(
padding: EdgeInsets.symmetric(
vertical: 10.w, horizontal: 0),
vertical: 10.h, horizontal: 0),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(