Selaa lähdekoodia

[feat]亲密度分析,截图回复-对话分析Tab,UI调整

hezihao 7 kuukautta sitten
vanhempi
commit
3e4bf01470

+ 3 - 3
lib/di/get_it.config.dart

@@ -233,12 +233,12 @@ extension GetItInjectableX on _i174.GetIt {
     gh.factory<_i15.CharacterCustomController>(
       () => _i15.CharacterCustomController(gh<_i50.ConfigRepository>()),
     );
-    gh.factory<_i765.ChangeHobbiesController>(
-      () => _i765.ChangeHobbiesController(gh<_i50.ConfigRepository>()),
-    );
     gh.factory<_i84.ChangeCharacterController>(
       () => _i84.ChangeCharacterController(gh<_i50.ConfigRepository>()),
     );
+    gh.factory<_i765.ChangeHobbiesController>(
+      () => _i765.ChangeHobbiesController(gh<_i50.ConfigRepository>()),
+    );
     gh.factory<_i888.CharacterController>(
       () => _i888.CharacterController(
         gh<_i421.CharactersRepository>(),

+ 1 - 1
lib/module/intimacy_analyse/analyse_report/intimacy_analyse_report_view.dart

@@ -148,7 +148,7 @@ class IntimacyAnalyseReportView
                     padding: const EdgeInsets.only(
                       left: 14,
                       right: 14,
-                      bottom: 14,
+                      bottom: 90,
                     ),
                     // 内容
                     child: Stack(

+ 19 - 12
lib/module/intimacy_analyse/screenshot_reply/conversation_analysis/conversation_analysis_view.dart

@@ -143,27 +143,34 @@ class ConversationAnalysisView
       contentWidget: Column(
         children: [
           Container(
+            width: 312.w,
+            height: 314.h,
             margin: EdgeInsets.only(left: 12.w, top: 17.h, right: 12.w),
-            padding: EdgeInsets.only(
-              left: 12.w,
-              top: 12.h,
-              right: 12.w,
-              bottom: 12.h,
-            ),
+            padding: EdgeInsets.all(12.w),
             decoration: BoxDecoration(
               color: ColorName.white,
               borderRadius: BorderRadius.circular(16.r),
             ),
             child: Stack(
               children: [
-                Assets.images.iconConversationAnalysisSampleImage.image(
-                  width: 288.w,
-                  height: 290.h,
-                  // fit: BoxFit.cover,
+                Positioned.fill(
+                  child: Container(
+                    padding: EdgeInsets.all(12.w),
+                    child: ClipRRect(
+                      // 图片裁切成圆角
+                      borderRadius: BorderRadius.circular(16.r),
+                      child: Assets.images.iconConversationAnalysisSampleImage
+                          .image(
+                            width: 288.w,
+                            height: 290.h,
+                            fit: BoxFit.fitWidth,
+                          ),
+                    ),
+                  ),
                 ),
                 Positioned(
-                  right: 12.w,
-                  bottom: 12.w,
+                  right: 0,
+                  bottom: 0,
                   child: Container(
                     padding: EdgeInsets.all(6.w),
                     decoration: BoxDecoration(

+ 19 - 12
lib/module/intimacy_analyse/screenshot_reply/scan_image_reply/scan_image_reply_view.dart

@@ -52,27 +52,34 @@ class ScanImageReplyView extends BaseView<ScanImageReplyController> {
       contentWidget: Column(
         children: [
           Container(
+            width: 312.w,
+            height: 314.h,
             margin: EdgeInsets.only(left: 12.w, top: 17.h, right: 12.w),
-            padding: EdgeInsets.only(
-              left: 12.w,
-              top: 12.h,
-              right: 12.w,
-              bottom: 12.h,
-            ),
+            padding: EdgeInsets.all(12.w),
             decoration: BoxDecoration(
               color: ColorName.white,
               borderRadius: BorderRadius.circular(16.r),
             ),
             child: Stack(
               children: [
-                Assets.images.iconUploadScreenshotSampleImage.image(
-                  width: 288.w,
-                  height: 290.h,
-                  // fit: BoxFit.cover,
+                Positioned.fill(
+                  child: Container(
+                    padding: EdgeInsets.all(12.w),
+                    child: ClipRRect(
+                      // 图片裁切成圆角
+                      borderRadius: BorderRadius.circular(16.r),
+                      child: Assets.images.iconUploadScreenshotSampleImage
+                          .image(
+                        width: 288.w,
+                        height: 290.h,
+                        fit: BoxFit.cover,
+                      ),
+                    ),
+                  ),
                 ),
                 Positioned(
-                  right: 12.w,
-                  bottom: 12.w,
+                  right: 0,
+                  bottom: 0,
                   child: Container(
                     padding: EdgeInsets.all(6.w),
                     decoration: BoxDecoration(