Compare commits

..

No commits in common. '17e136b20c6f8008dc19489fd6eb145744cec9df' and 'c66fbdb811358d1a152a9366501e9b8bdf37d87a' have entirely different histories.

@ -1297,6 +1297,10 @@ class $AssetsImagesGen {
AssetGenImage get wxpay => const AssetGenImage('assets/images/wxpay.png');
}
class $AssetsJsonGen {
const $AssetsJsonGen();
}
class $AssetsNewIconGen {
const $AssetsNewIconGen();
@ -1529,6 +1533,7 @@ class Assets {
static const $AssetsHomeGen home = $AssetsHomeGen();
static const $AssetsIconsGen icons = $AssetsIconsGen();
static const $AssetsImagesGen images = $AssetsImagesGen();
static const $AssetsJsonGen json = $AssetsJsonGen();
static const $AssetsNewIconGen newIcon = $AssetsNewIconGen();
static const $AssetsStaticGen static = $AssetsStaticGen();
static const $AssetsTabGen tab = $AssetsTabGen();

@ -7,9 +7,8 @@ part 'reply_list_model.g.dart';
@JsonSerializable()
class ReplyListModel {
final int id;
final int type;
final int status;
final String? content;
final String content;
final int sendId;
final String sendName;
final String sendDate;
@ -27,7 +26,6 @@ class ReplyListModel {
const ReplyListModel({
required this.id,
required this.type,
required this.status,
required this.content,
required this.sendId,

@ -9,9 +9,8 @@ part of 'reply_list_model.dart';
ReplyListModel _$ReplyListModelFromJson(Map<String, dynamic> json) =>
ReplyListModel(
id: json['id'] as int,
type: json['type'] as int,
status: json['status'] as int,
content: json['content'] !=null? json['content'] as String:'',
content: json['content'] as String,
sendId: json['sendId'] as int,
sendName: json['sendName'] as String,
sendDate: json['sendDate'] as String,

@ -47,8 +47,6 @@ class _MessageCenterPageState extends State<MessageCenterPage>
@override
Widget build(BuildContext context) {
return BeeScaffold(
bgColor: Colors.white,
bodyColor: Color(0xFFF9F9F9),
title: '消息',
actions: [
MaterialButton(
@ -67,17 +65,11 @@ class _MessageCenterPageState extends State<MessageCenterPage>
padding: EdgeInsets.symmetric(horizontal: 32.w),
),
],
appBarBottom:
TabBar(
appBarBottom: BeeTabBar(
controller: _tabController,
indicatorColor: Color(0xffffc40c),
tabs: _tabs.map((e) => Tab(text: e)).toList(),
indicatorPadding: EdgeInsets.only(bottom: 15.w,left: 35.w,right: 35.w),
tabs: _tabs,
),
body:
Padding(
padding: EdgeInsets.only(top: 10.w),
child: TabBarView(
body: TabBarView(
children: [
ReplayView(
controller: _controllers[0],
@ -89,7 +81,6 @@ class _MessageCenterPageState extends State<MessageCenterPage>
],
controller: _tabController,
),
),
);
}
}

@ -38,9 +38,7 @@ class _ReplayViewState extends State<ReplayView> {
itemBuilder: (context, index) {
return ReplyCard(model: items[index]);
},
separatorBuilder: (_, __) =>Container(
color: Color(0xFFF0F0F0),height: 2.w,
),
separatorBuilder: (_, __) =>1.w.heightBox,
itemCount: items.length);
});
}

@ -42,13 +42,7 @@ class ReplyCard extends StatelessWidget {
children: [
model.sendName.text.size(26.sp).black.bold.make(),
5.heightBox,
model.content==null?''.text
.size(26.sp)
.color(ktextSubColor)
.maxLines(1)
.ellipsis
.make():
(model.content!).text
model.content.text
.size(26.sp)
.color(ktextSubColor)
.maxLines(1)

@ -1,6 +1,5 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/models/message/reply_list_model.dart';
import 'package:aku_new_community/models/message/thumbs_up_list_model.dart';
import 'package:aku_new_community/pages/message_center_page/message_func.dart';
import 'package:aku_new_community/widget/beeImageNetwork.dart';
@ -9,7 +8,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
class ThumbsUpCard extends StatelessWidget {
final ReplyListModel model;
final ThumbsUpListModel model;
const ThumbsUpCard({Key? key, required this.model}) : super(key: key);
@ -37,10 +36,8 @@ class ThumbsUpCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
model.sendName.text.size(26.sp).black.bold.make(),
5.heightBox,
Assets.icons.communityLikeIs
.image(width: 28.w, height: 28.w, fit: BoxFit.contain),
5.heightBox,
model.sendDate.text.size(24.sp).color(ktextSubColor).make(),
],
),

@ -300,14 +300,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
}
Widget _commentWidget(CommentListModel model, int rootIndex) {
return GestureDetector(
onTap: () {
_rootId = model.id;
_parentId = model.id;
_focusNode.requestFocus();
_currentCommentIndex = rootIndex;
},
child: Container(
return Container(
// key: UniqueKey(),
color: Colors.white,
padding: EdgeInsets.symmetric(vertical: 32.w, horizontal: 32.w),
@ -427,7 +420,14 @@ class _EventDetailPageState extends State<EventDetailPage> {
),
),
32.wb,
Row(
GestureDetector(
onTap: () {
_rootId = model.id;
_parentId = model.id;
_focusNode.requestFocus();
_currentCommentIndex = rootIndex;
},
child: Row(
children: [
Image.asset(
R.ASSETS_ICONS_COMMUNITY_COMMENT_PNG,
@ -436,6 +436,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
),
],
),
),
5.wb,
'${model.commentNum}'
.text
@ -476,7 +477,6 @@ class _EventDetailPageState extends State<EventDetailPage> {
),
],
),
),
);
}

@ -73,7 +73,6 @@ class BeeScaffold extends StatelessWidget {
actions: actions,
bottom: appBarBottom,
titleSpacing: titleSpacing,
);
return AnnotatedRegion<SystemUiOverlayStyle>(

Loading…
Cancel
Save