Browse Source

[new]优化AI聊天框相关视图显示

zk 1 year ago
parent
commit
d1b4b2d7b4
1 changed files with 17 additions and 9 deletions
  1. 17 9
      lib/module/chat/view.dart

+ 17 - 9
lib/module/chat/view.dart

@@ -159,7 +159,7 @@ class ChatPage extends BasePage<ChatController> {
           width: 1.sw,
           decoration: BoxDecoration(
               color: Colors.white,
-              borderRadius: BorderRadius.circular(24.w),
+              borderRadius: BorderRadius.circular(12.w),
               boxShadow: const [
                 BoxShadow(
                   color: Color(0x4CDDDEE8),
@@ -169,7 +169,7 @@ class ChatPage extends BasePage<ChatController> {
                 )
               ]),
           child: Padding(
-            padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
+            padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 12),
             child: Column(
               children: [
                 Obx(() {
@@ -569,12 +569,16 @@ class ChatPage extends BasePage<ChatController> {
                       fontSize: 14.w,
                       color: ColorName.primaryTextColor)),
               const Spacer(),
-              Container(
-                margin: EdgeInsets.only(left: 8.w),
-                child: Image(
-                    image: Assets.images.iconReferenceChatDeleteFile.provider(),
-                    width: 18.w,
-                    height: 18.w),
+              GestureDetector(
+                onTap: () => controller.onDeleteReference(),
+                child: Container(
+                  margin: EdgeInsets.only(left: 8.w),
+                  child: Image(
+                      image:
+                          Assets.images.iconReferenceChatDeleteFile.provider(),
+                      width: 18.w,
+                      height: 18.w),
+                ),
               ),
             ],
           ),
@@ -602,6 +606,11 @@ class ChatPage extends BasePage<ChatController> {
 
   _buildNormalReference(TalkBean talkInfo) {
     return Container(
+      decoration: BoxDecoration(
+        color: "#F6F6F6".color,
+        borderRadius: BorderRadius.all(Radius.circular(6.w)),
+      ),
+      padding: EdgeInsets.symmetric(horizontal: 8.w, vertical: 7.h),
       margin: EdgeInsets.only(bottom: 14.h),
       child: Row(
         children: [
@@ -626,7 +635,6 @@ class ChatPage extends BasePage<ChatController> {
           const Spacer(),
           Container(
             margin: EdgeInsets.only(left: 8.w),
-            color: "#F6F6F6".color,
             child: GestureDetector(
               onTap: () => controller.onDeleteReference(),
               child: Image(