From a8372149c15aae4d7808662ce0a4753294ec2370 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Wed, 24 Mar 2021 13:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5-=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E9=80=9A=E7=9F=A5=E6=98=BE=E7=A4=BA=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../comment_message/comment_message_page.dart | 48 +++++++++---------- .../message_center_page.dart | 2 - 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/lib/pages/message_center_page/comment_message/comment_message_page.dart b/lib/pages/message_center_page/comment_message/comment_message_page.dart index cc50ec7c..6c8b5739 100644 --- a/lib/pages/message_center_page/comment_message/comment_message_page.dart +++ b/lib/pages/message_center_page/comment_message/comment_message_page.dart @@ -12,6 +12,7 @@ import 'package:akuCommunity/pages/things_page/widget/bee_list_view.dart'; import 'package:akuCommunity/utils/bee_date_util.dart'; import 'package:akuCommunity/widget/bee_divider.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart'; +import 'package:akuCommunity/utils/headers.dart'; class CommentMessagePage extends StatefulWidget { CommentMessagePage({Key key}) : super(key: key); @@ -44,22 +45,23 @@ class _CommentMessagePageState extends State { width: double.infinity, padding: EdgeInsets.fromLTRB(32.w, 32.w, 32.w, 16.w), child: Row( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - Column( - children: [ - Container( - width: 86.w, - height: 86.w, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(6.w), - ), - clipBehavior: Clip.antiAlias, - child: FadeInImage.assetNetwork( - placeholder: R.ASSETS_IMAGES_LOGO_PNG, - image: model.imgUrls.first.url)), - ], + Container( + width: 86.w, + height: 86.w, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(6.w), + ), + clipBehavior: Clip.antiAlias, + child: FadeInImage.assetNetwork( + placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, + image: model.imgUrls.first.url, + ), ), + 10.wb, Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ model.createName.text.black.size(36.sp).make(), ((model.respondentName?.isEmptyOrNull ?? true) @@ -77,17 +79,15 @@ class _CommentMessagePageState extends State { .make(), ], ), - Column( - children: [ - Container( - width: 160.w, - height: 160.w, - child: FadeInImage.assetNetwork( - placeholder: R.ASSETS_IMAGES_LOGO_PNG, - image: model.imgUrls.first.url), - ) - ], - ) + Spacer(), + Container( + width: 160.w, + height: 160.w, + child: FadeInImage.assetNetwork( + placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, + image: model.imgUrls.first.url, + ), + ), ], ), ); diff --git a/lib/pages/message_center_page/message_center_page.dart b/lib/pages/message_center_page/message_center_page.dart index 084f665e..f8cf77e2 100644 --- a/lib/pages/message_center_page/message_center_page.dart +++ b/lib/pages/message_center_page/message_center_page.dart @@ -2,7 +2,6 @@ import 'package:flutter/material.dart'; import 'package:badges/badges.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; -import 'package:jpush_flutter/jpush_flutter.dart'; import 'package:provider/provider.dart'; import 'package:akuCommunity/constants/api.dart'; @@ -12,7 +11,6 @@ import 'package:akuCommunity/provider/app_provider.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/network/net_util.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart'; -import 'package:akuCommunity/widget/buttons/column_action_button.dart'; class MessageCenterPage extends StatefulWidget { MessageCenterPage({Key key}) : super(key: key);