|
|
@ -106,7 +106,6 @@ class _EventDetailPageState extends State<EventDetailPage> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return BeeScaffold(
|
|
|
|
return BeeScaffold(
|
|
|
|
|
|
|
|
|
|
|
|
leading: Navigator.canPop(context)
|
|
|
|
leading: Navigator.canPop(context)
|
|
|
|
? IconButton(
|
|
|
|
? IconButton(
|
|
|
|
onPressed: () => Get.back(result: true),
|
|
|
|
onPressed: () => Get.back(result: true),
|
|
|
@ -116,8 +115,6 @@ class _EventDetailPageState extends State<EventDetailPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
: SizedBox(),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
title: '详情',
|
|
|
|
title: '详情',
|
|
|
|
bottomNavi: _bottomButton(),
|
|
|
|
bottomNavi: _bottomButton(),
|
|
|
|
actions: [
|
|
|
|
actions: [
|
|
|
@ -304,6 +301,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget _commentWidget(CommentListModel model, int rootIndex){
|
|
|
|
Widget _commentWidget(CommentListModel model, int rootIndex){
|
|
|
|
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
return GestureDetector(
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
_rootId = model.id;
|
|
|
|
_rootId = model.id;
|
|
|
@ -363,9 +361,9 @@ class _EventDetailPageState extends State<EventDetailPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
CommunityPopButton(
|
|
|
|
CommunityPopButton(
|
|
|
|
isMyself: _isMyself,
|
|
|
|
isMyself: userProvider.userInfoModel?.id==model.createId,
|
|
|
|
onSelect: (value) async {
|
|
|
|
onSelect: (value) async {
|
|
|
|
if (_isMyself) {
|
|
|
|
if (userProvider.userInfoModel?.id==model.createId) {
|
|
|
|
await CommunityFunc.deleteComment(model.id);
|
|
|
|
await CommunityFunc.deleteComment(model.id);
|
|
|
|
_refreshController.callRefresh();
|
|
|
|
_refreshController.callRefresh();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -374,18 +372,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
|
|
|
|
40.hb,
|
|
|
|
40.hb,
|
|
|
|
model.content.text.size(28.sp).color(ktextSubColor).make(),
|
|
|
|
model.content.text.size(28.sp).color(ktextSubColor).make(),
|
|
|
|
30.hb,
|
|
|
|
30.hb,
|
|
|
|
GestureDetector(
|
|
|
|
Row(
|
|
|
|
onTap: () async {
|
|
|
|
|
|
|
|
var res =
|
|
|
|
|
|
|
|
await NetUtil().get(SAASAPI.community.commentLike, params: {
|
|
|
|
|
|
|
|
'commentId': model.id,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
if (res.success) {
|
|
|
|
|
|
|
|
_likes[rootIndex] = !_likes[rootIndex];
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
GestureDetector(
|
|
|
|
GestureDetector(
|
|
|
@ -448,7 +435,6 @@ class _EventDetailPageState extends State<EventDetailPage> {
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
40.hb,
|
|
|
|
40.hb,
|
|
|
|
model.commentTwoList.isEmpty
|
|
|
|
model.commentTwoList.isEmpty
|
|
|
|
? SizedBox.shrink()
|
|
|
|
? SizedBox.shrink()
|
|
|
@ -584,7 +570,6 @@ class _EventDetailPageState extends State<EventDetailPage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_bottomButton() {
|
|
|
|
_bottomButton() {
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
height: 100.w,
|
|
|
|
height: 100.w,
|
|
|
|