Index: lib/page/domestic/home/cn_home_page.dart
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
<+>import 'package:flutter/material.dart';\nimport 'package:flutter/src/widgets/framework.dart';\nimport 'package:smps_flutter_pda/common/smps_core_config.dart';\nimport 'package:smps_flutter_pda/page/domestic/home/cn_home_controller.dart';\nimport 'package:smps_flutter_pda/page/hi_getview.dart';\nimport 'package:smps_flutter_pda/res/strings.dart';\nimport 'package:smps_flutter_pda/utils/image_utils.dart';\nimport 'package:smps_flutter_pda/utils/navigator_utils.dart';\nimport 'package:smps_flutter_pda/widget/mp_scaffold.dart';\nimport 'package:flutter_screenutil/flutter_screenutil.dart';\nimport 'package:get/get.dart';\nimport 'package:smps_flutter_pda/common/extension/double_ext.dart';\nimport 'package:smps_flutter_pda/common/extension/string_parser_extension.dart';\n\nclass CNHomePage extends HiGetView<CNHomeController> {\n  static const String routeName = \"/CNHomePage\";\n  const CNHomePage({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    Get.put(CNHomeController());\n    return MpScaffold(\n      titleStyle: TextStyle(\n          fontSize: 18.sp, color: Colors.white, fontWeight: FontWeight.w600),\n      leading: false,\n      title: Ids.homePage.tr,\n      child: Container(\n        width: 1.sw,\n        height: 1.sh,\n        color: SPMSCoreConfig.baseColor,\n        child: _buildScrollWidget(),\n      ),\n    );\n  }\n  ///整体可滑动外壳\n  Widget _buildScrollWidget() {\n    return SingleChildScrollView(\n      child: Column(\n        children: [\n          _buildHeader(),\n          12.heightSizedBox,\n          ..._buildGroupWidget(),\n        ],\n      ),\n    );\n  }\n  ///所有分组view\n  List<Widget> _buildGroupWidget(){\n    return controller.homeGroups.map((HomeGroup e) {\n      return _buildGroupView(e);\n    }).toList();\n  }\n  ///组中的每个item\n  Widget _buildItemView(HomeItem homeItem,{double? width}) {\n    return GestureDetector(\n      behavior: HitTestBehavior.opaque,\n      onTap: (){\n        if(homeItem.routeName?.isNotEmpty??false){\n          NavigatorUtils.pushPage(homeItem.routeName!);\n        }\n      },\n      child: SizedBox(\n        width: width??80.w,\n        child: Column(\n          mainAxisSize: MainAxisSize.min,\n          crossAxisAlignment: CrossAxisAlignment.center,\n          mainAxisAlignment: MainAxisAlignment.center,\n          children: [\n            Image.asset(\n              ImageUtils.getImagePath(homeItem.iconName!, 'common'),\n              width: 60.w,\n              height: 60.w,\n            ),\n            8.heightSizedBox,\n            Text(\n              homeItem.title!,\n              style: TextStyle(fontSize: 16.sp, color: '#333333'.getColor()),\n              textAlign: TextAlign.center,\n            )\n          ],\n        ),\n      ),\n    );\n  }\n\n  ///头部图片文字\n  Widget _buildHeader(){\n    return Container(\n      width: 1.sw,\n      height: 137.h,\n      decoration: BoxDecoration(\n        image: DecorationImage(\n          image: AssetImage(\n              ImageUtils.getImagePath('home_bg.png', 'common')),\n          fit: BoxFit.fill,\n        ),\n      ),\n      padding: EdgeInsets.only(left: 17.w, right: 199.w, top: 19.h),\n      child: Column(\n        crossAxisAlignment: CrossAxisAlignment.start,\n        children: [\n          Text(\n            Ids.warehouseManagementSystem.tr,\n            style: TextStyle(\n                fontSize: 24.sp,\n                color: Colors.white,\n                fontWeight: FontWeight.bold),\n          )\n        ],\n      ),\n    );\n  }\n  ///组的View\n  Widget _buildGroupView(HomeGroup homeGroup){\n    return Column(\n      children: [\n        ///组名称\n        Container(\n          width: 1.sw,\n          padding: EdgeInsets.only(left: 14.w, bottom: 12.h),\n          alignment: Alignment.centerLeft,\n          child: Row(\n            crossAxisAlignment: CrossAxisAlignment.center,\n            children: [\n              Container(\n                width: 5.w,\n                height: 20.h,\n                decoration: BoxDecoration(\n                    color: '#165DFF'.getColor(),\n                    borderRadius: BorderRadius.circular(5.w)),\n              ),\n              8.widthSizedBox,\n              Text(\n                homeGroup.name!,\n                style: TextStyle(\n                    fontSize: SPMSCoreConfig.baseTextSize,\n                    color: '#333333'.getColor(),\n                    fontWeight: FontWeight.bold),\n              )\n            ],\n          ),\n        ),\n        ///分割线\n        Container(\n          width: 1.sw,\n          height: 1.h,\n          color: 'eeeeee'.getColor(),\n        ),\n        ///组内元素\n        Container(\n          padding: EdgeInsets.only(top: 12.h, bottom: 12.h),\n          child: Row(\n            mainAxisSize: MainAxisSize.max,\n            mainAxisAlignment: MainAxisAlignment.spaceEvenly,\n            crossAxisAlignment: CrossAxisAlignment.start,\n            children: homeGroup.items!.map(\n                    (HomeItem e) => _buildItemView(e)\n            ).toList()..addAll(_emptyWidget(3-homeGroup.items!.length)),\n          ),\n        ),\n      ],\n    );\n  }\n  ///空的widget用来占位，使row布局平均分布\n  List<Widget> _emptyWidget(int length){\n    return List.generate(length, (index) => 112.widthSizedBox);\n  }\n\n}\n
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/page/domestic/home/cn_home_page.dart b/lib/page/domestic/home/cn_home_page.dart
--- a/lib/page/domestic/home/cn_home_page.dart	(revision a46304025c2c3d8ed9df5792df8c7f48037f7d06)
+++ b/lib/page/domestic/home/cn_home_page.dart	(date 1712629102300)
@@ -18,18 +18,39 @@
 
   @override
   Widget build(BuildContext context) {
-    Get.put(CNHomeController());
-    return MpScaffold(
-      titleStyle: TextStyle(
-          fontSize: 18.sp, color: Colors.white, fontWeight: FontWeight.w600),
-      leading: false,
-      title: Ids.homePage.tr,
-      child: Container(
-        width: 1.sw,
-        height: 1.sh,
-        color: SPMSCoreConfig.baseColor,
-        child: _buildScrollWidget(),
-      ),
+    // Get.put(CNHomeController());
+
+    return Scaffold(
+      appBar: AppBar(),
+      body: _buildScrollWidget2(),
+    );
+    // return MpScaffold(
+    //   titleStyle: TextStyle(
+    //       fontSize: 18.sp, color: Colors.white, fontWeight: FontWeight.w600),
+    //   leading: false,
+    //   title: Ids.homePage.tr,
+    //   child: Container(
+    //     width: 1.sw,
+    //     height: 1.sh,
+    //     color: SPMSCoreConfig.baseColor,
+    //     child: _buildScrollWidget1(),
+    //   ),
+    // );
+  }
+  Widget _buildScrollWidget2() {
+    return ListView(
+      children:List.generate(30, (index) => Container(height: 20,color: Colors.green,)),
+    );
+  }
+
+
+  Widget _buildScrollWidget1() {
+    return ListView(
+      children: [
+        _buildHeader(),
+        12.heightSizedBox,
+        ..._buildGroupWidget(),
+      ],
     );
   }
   ///整体可滑动外壳
