消息通知-评论通知显示修复

hmxc
小赖 4 years ago
parent daee622de5
commit a8372149c1

@ -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/utils/bee_date_util.dart';
import 'package:akuCommunity/widget/bee_divider.dart'; import 'package:akuCommunity/widget/bee_divider.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:akuCommunity/utils/headers.dart';
class CommentMessagePage extends StatefulWidget { class CommentMessagePage extends StatefulWidget {
CommentMessagePage({Key key}) : super(key: key); CommentMessagePage({Key key}) : super(key: key);
@ -44,22 +45,23 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
width: double.infinity, width: double.infinity,
padding: EdgeInsets.fromLTRB(32.w, 32.w, 32.w, 16.w), padding: EdgeInsets.fromLTRB(32.w, 32.w, 32.w, 16.w),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Column( Container(
children: [ width: 86.w,
Container( height: 86.w,
width: 86.w, decoration: BoxDecoration(
height: 86.w, borderRadius: BorderRadius.circular(6.w),
decoration: BoxDecoration( ),
borderRadius: BorderRadius.circular(6.w), clipBehavior: Clip.antiAlias,
), child: FadeInImage.assetNetwork(
clipBehavior: Clip.antiAlias, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
child: FadeInImage.assetNetwork( image: model.imgUrls.first.url,
placeholder: R.ASSETS_IMAGES_LOGO_PNG, ),
image: model.imgUrls.first.url)),
],
), ),
10.wb,
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
model.createName.text.black.size(36.sp).make(), model.createName.text.black.size(36.sp).make(),
((model.respondentName?.isEmptyOrNull ?? true) ((model.respondentName?.isEmptyOrNull ?? true)
@ -77,17 +79,15 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
.make(), .make(),
], ],
), ),
Column( Spacer(),
children: [ Container(
Container( width: 160.w,
width: 160.w, height: 160.w,
height: 160.w, child: FadeInImage.assetNetwork(
child: FadeInImage.assetNetwork( placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
placeholder: R.ASSETS_IMAGES_LOGO_PNG, image: model.imgUrls.first.url,
image: model.imgUrls.first.url), ),
) ),
],
)
], ],
), ),
); );

@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:badges/badges.dart'; import 'package:badges/badges.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:jpush_flutter/jpush_flutter.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:akuCommunity/constants/api.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/headers.dart';
import 'package:akuCommunity/utils/network/net_util.dart'; import 'package:akuCommunity/utils/network/net_util.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:akuCommunity/widget/buttons/column_action_button.dart';
class MessageCenterPage extends StatefulWidget { class MessageCenterPage extends StatefulWidget {
MessageCenterPage({Key key}) : super(key: key); MessageCenterPage({Key key}) : super(key: key);

Loading…
Cancel
Save