Procházet zdrojové kódy

间距的小调整

liukai před 4 měsíci
rodič
revize
57a3dffb50

+ 1 - 1
packages/cpt_job/lib/modules/applied_staff_detail/applied_staff_detail_page.dart

@@ -104,7 +104,7 @@ class _AppliedStaffDetailState extends BaseState<AppliedStaffDetailPage, Applied
                       ))
                     ],
                   ),
-                ).expanded(),
+                ).marginOnly(top: 5,bottom: 5).expanded(),
               ],
             ),
           ),

+ 5 - 6
packages/cpt_job/lib/modules/applied_staff_detail/staff_detail_widget.dart

@@ -16,7 +16,6 @@ import 'package:widgets/my_text_view.dart';
  * 员工的做工记录
  */
 class StaffDetailWidget extends StatelessWidget {
-
   final StaffDetailEntity? detail;
   final void Function() onRemarkAction;
 
@@ -28,7 +27,7 @@ class StaffDetailWidget extends StatelessWidget {
   @override
   Widget build(BuildContext context) {
     return Container(
-      margin: EdgeInsets.symmetric(horizontal: 15, vertical: 10),
+      margin: EdgeInsets.only(left: 15, right: 15, top: 5, bottom: 10),
       decoration: BoxDecoration(
         color: Color(0xFF4DCFF6).withOpacity(0.2), // 设置背景颜色和不透明度
         borderRadius: BorderRadius.circular(5), // 设置圆角
@@ -39,10 +38,10 @@ class StaffDetailWidget extends StatelessWidget {
           //头像
           Center(
               child: MyLoadImage(
-                detail?.avatar,
-                width: 100,
-                height: 100,
-              )).marginOnly(top: 25, bottom: 15),
+            detail?.avatar,
+            width: 100,
+            height: 100,
+          )).marginOnly(top: 25, bottom: 15),
 
           //姓名
           Row(

+ 3 - 0
packages/cpt_job/lib/modules/applied_staff_reviews/applied_staff_reviews_page.dart

@@ -20,6 +20,9 @@ import 'package:widgets/my_appbar.dart';
 import 'applied_staff_reviews_item.dart';
 import 'applied_staff_reviews_state.dart';
 
+/**
+ * 员工的评论页面
+ */
 class AppliedStaffReviewsPage extends BaseStatefulPage<AppliedStaffReviewsController> {
   AppliedStaffReviewsPage({Key? key}) : super(key: key);
 

+ 1 - 1
packages/cpt_job/lib/modules/applied_workflow/applied_workflow_page.dart

@@ -90,7 +90,7 @@ class _AppliedWorkflowState extends BaseState<AppliedWorkflowPage, AppliedWorkfl
                           ))
                     ],
                   ),
-                ).expanded(),
+                ).marginOnly(top: 5,bottom: 5).expanded(),
               ],
             ).marginOnly(top: 10),
           ),

+ 1 - 1
packages/cpt_job/lib/modules/job_list/job_list_page.dart

@@ -133,7 +133,7 @@ class _JobListState extends BaseState<JobListPage, JobListController> {
                       ))
                     ],
                   ),
-                ).expanded(),
+                ).marginOnly(top: 5,bottom: 5).expanded(),
               ],
             ),
           ),