Browse Source

fix:优化消息列表。

“HeShaoZe” 4 months ago
parent
commit
bffe4968c4
2 changed files with 15 additions and 15 deletions
  1. 14 14
      lib/module/news/news_list_item.dart
  2. 1 1
      lib/module/news/news_page.dart

+ 14 - 14
lib/module/news/news_list_item.dart

@@ -174,20 +174,20 @@ Widget buildMessageItem(ImageProvider avatar,
                 crossAxisAlignment: CrossAxisAlignment.end,
                 children: [
                   SizedBox(height: 7.w),
-                  Container(
-                    width: MediaQuery.of(Get.context!).size.width,
-                    alignment: Alignment.centerRight,
+                  GestureDetector(
+                    onTap: onReportEvent,
                     child: Container(
-                      width: 100.w,
-                      height: 32.w,
-                      decoration: BoxDecoration(
-                          color: "#7B7DFF".color,
-                          borderRadius: BorderRadius.all(Radius.circular(32.w/2))
-                      ),
-                      alignment: Alignment.center,
-                      //color: Colors.orange,
-                      child: GestureDetector(
-                        onTap: onReportEvent,
+                      width: MediaQuery.of(Get.context!).size.width,
+                      alignment: Alignment.centerRight,
+                      child: Container(
+                        width: 100.w,
+                        height: 32.w,
+                        decoration: BoxDecoration(
+                            color: "#7B7DFF".color,
+                            borderRadius: BorderRadius.all(Radius.circular(32.w/2))
+                        ),
+                        alignment: Alignment.center,
+                        //color: Colors.orange,
                         child: Container(
                           child: Text("举报",style: TextStyle(
                               fontSize: 15.sp,
@@ -198,7 +198,7 @@ Widget buildMessageItem(ImageProvider avatar,
                         ),
                       ),
                     ),
-                  )
+                  ),
                 ],
               )
             ],

+ 1 - 1
lib/module/news/news_page.dart

@@ -138,7 +138,7 @@ class NewsPage extends BasePage<NewsController> {
           Obx(() {
             return Opacity(
               opacity: controller.opacity,
-              child: Text(StringName.newsTitle,
+              child: Text(Platform.isIOS ? StringName.newsNote : StringName.newsTitle,
                   style: TextStyle(
                       fontSize: 16.sp,
                       color: ColorName.black90,