glglove před 1 měsícem
rodič
revize
d8ec6900c3

+ 1 - 1
packages/cpt_community/lib/modules/community/community_page.dart

@@ -209,7 +209,7 @@ class CommunityPage extends HookConsumerWidget with WidgetsBindingObserver {
         }
         return Container(
           color: context.appColors.whiteBG,
-          padding: const EdgeInsets.only(top: 23, bottom: 30),
+          padding: const EdgeInsets.only(top: 0, bottom: 10),
           child: Center(
             child: Row(
               mainAxisSize: MainAxisSize.max,

+ 1 - 1
packages/cpt_community/lib/modules/community/following/following_page.dart

@@ -102,7 +102,7 @@ class FollowingPage extends HookConsumerWidget {
     int card_likes_count = item.getValue("likes_count", 0);
     int card_comments_count = item.getValue("comments_count", 0);
     return Container(
-      margin: const EdgeInsets.only(left: 15, right: 15,top: 14,bottom: 14),
+      margin: const EdgeInsets.only(left: 15, right: 15,top: 14,bottom: 0),
       padding: const EdgeInsets.only(left: 15, right: 15,top: 17,bottom: 0),
       decoration: BoxDecoration(
           color: context.appColors.textWhite,

+ 1 - 1
packages/cpt_community/lib/modules/community/foryou/foryou_page.dart

@@ -109,7 +109,7 @@ class ForyouPage extends HookConsumerWidget {
     int card_likes_count = item.getValue("likes_count", 0);
     int card_comments_count = item.getValue("comments_count", 0);
     return Container(
-      margin: const EdgeInsets.only(left: 15, right: 15,top: 14,bottom: 14),
+      margin: const EdgeInsets.only(left: 15, right: 15,top: 14,bottom: 0),
       padding: const EdgeInsets.only(left: 15, right: 15,top: 17,bottom: 0),
       decoration: BoxDecoration(
           color: context.appColors.textWhite,

+ 1 - 1
packages/cpt_community/lib/modules/community/news/news_page.dart

@@ -118,7 +118,7 @@ class NewsPage extends HookConsumerWidget {
 
 
     return Container(
-        margin: const EdgeInsets.only(left: 15, right: 15,top: 14,bottom: 14),
+        margin: const EdgeInsets.only(left: 15, right: 15,top: 14,bottom: 0),
         padding: const EdgeInsets.only(left: 15, right: 15,top: 17,bottom: 0),
         decoration: BoxDecoration(
           color: context.appColors.textWhite,

+ 3 - 3
packages/cpt_property/lib/modules/news/page/property_news_page.dart

@@ -32,7 +32,7 @@ class PropertyNewsPage extends HookConsumerWidget {
     }
   }
 
-  static double cardHeight = 117.5 + 50;
+  static double cardHeight = 117.5 + 20;
   static double cardLeftWidth = 125;
 
   Widget _buildItemLeftSection(BuildContext context,WidgetRef ref, item, vm) {
@@ -54,8 +54,8 @@ class PropertyNewsPage extends HookConsumerWidget {
             placeholderPath: Assets.propertyNewsItemBg,
             height: item['cover_image']!.isNotEmpty? cardHeight : 60.5,
             width: item['cover_image']!.isNotEmpty? cardLeftWidth : 60.5,
-            // fit: BoxFit.cover,
-            fit: BoxFit.contain,
+            fit: BoxFit.cover,
+            // fit: BoxFit.contain,
             cornerRadius: 8,
           ),
         )

+ 2 - 2
packages/cpt_property/lib/modules/property/page/property_page.dart

@@ -37,7 +37,7 @@ class PropertyPage extends HookConsumerWidget {
       child: Container(
         color: context.appColors.whiteBG,
         width: MediaQuery.of(context).size.width,
-        padding: const EdgeInsets.only(top: 25, bottom: 25),
+        padding: const EdgeInsets.only(top: 0, bottom: 25),
         child: Row(
           mainAxisAlignment: MainAxisAlignment.center,
           crossAxisAlignment: CrossAxisAlignment.center,
@@ -51,7 +51,7 @@ class PropertyPage extends HookConsumerWidget {
                 children: [
                   Container(
                     width: MediaQuery.of(context).size.width / topSectionsData.length - 36,
-                    height: 70,
+                    // height: 70,
                     decoration: BoxDecoration(
                       color: ColorUtils.string2Color("#F0F8FF"),
                       shape: BoxShape.circle, // 设置为圆形

+ 1 - 0
packages/cpt_services/lib/components/status_card_item.dart

@@ -46,6 +46,7 @@ class StausCardItem extends HookConsumerWidget {
     return Container(
       width: double.infinity,
       height: cardHeight,
+      alignment: Alignment.center,
       child: Padding(
         padding: EdgeInsets.only(left: 18.0, right: 18.0, top: 10, bottom: 10.0),
         child: Column(

+ 1 - 1
packages/cpt_services/lib/modules/services/history/history_page.dart

@@ -117,7 +117,7 @@ class HistoryPage extends HookConsumerWidget {
 
   Widget _buildHistoryItem(BuildContext context, WidgetRef ref, GarageSaleHistoryList item, vm, String cleanServiceType, int serviceStatusCode) {
     return Container(
-      margin: const EdgeInsets.only(top: 11),
+      margin: const EdgeInsets.only(top: 10),
       width: double.infinity,
       decoration: BoxDecoration(
         color: context.appColors.whiteBG,

+ 1 - 1
packages/cpt_services/lib/modules/services/inProgress/in_progress_page.dart

@@ -110,7 +110,7 @@ class InProgressPage extends HookConsumerWidget {
 
   Widget _buildInProgressItem(BuildContext context, WidgetRef ref, GarageSaleHistoryList item, vm, String cleanServiceType, int serviceStatusCode) {
     return Container(
-      margin: const EdgeInsets.only(top: 9),
+      margin: const EdgeInsets.only(top: 10),
       width: double.infinity,
       decoration: BoxDecoration(
         color: context.appColors.whiteBG,

+ 2 - 2
packages/cpt_services/lib/modules/services/repair/repair_page.dart

@@ -145,8 +145,8 @@ class RepairPage extends HookConsumerWidget with WidgetsBindingObserver {
               return [
                 SliverPersistentHeader(
                   delegate: CustomSliverPersistentHeaderDelegate(
-                    maxHeight: 130,
-                    minHeight: 130,
+                    maxHeight: 120,
+                    minHeight: 120,
                     child: _buildTopSection(context, ref, vm, state),
                   ),
                   pinned: currentPageIdx !=0? true:false,

+ 1 - 1
packages/cpt_services/lib/modules/services/repair_inProgress/in_progress_page.dart

@@ -135,7 +135,7 @@ class RepairInProgressPage extends HookConsumerWidget {
         height: 130,
         child: Padding(
           padding: const EdgeInsets.only(
-              left: 18.0, right: 18.0, top: 22.0, bottom: 22.0),
+              left: 18.0, right: 18.0, top: 10, bottom: 10),
           child: Column(
             crossAxisAlignment: CrossAxisAlignment.start,
             children: [

+ 2 - 2
packages/cpt_services/lib/modules/services/services_page.dart

@@ -148,8 +148,8 @@ class ServicesPage extends HookConsumerWidget with WidgetsBindingObserver {
               return [
                 SliverPersistentHeader(
                   delegate: CustomSliverPersistentHeaderDelegate(
-                    maxHeight: 130,
-                    minHeight: 130,
+                    maxHeight: 120,
+                    minHeight: 120,
                     child: _buildTopSection(context, ref, vm, state),
                   ),
                   pinned: currentPageIdx !=0? true:false,