|
|
|
@ -130,7 +130,7 @@ class CommentListState extends State<CommentList> {
|
|
|
|
|
// showPressMenu(memberList[position].createUser, |
|
|
|
|
// memberList[position]); |
|
|
|
|
}, |
|
|
|
|
child: commentItem(memberList[position]), |
|
|
|
|
child: commentItem(memberList[position],position), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
@ -240,7 +240,7 @@ class CommentListState extends State<CommentList> {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Widget commentItem(MemberComment member) { |
|
|
|
|
Widget commentItem(MemberComment member,int index) { |
|
|
|
|
return Container( |
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 8.w), |
|
|
|
|
child: Column( |
|
|
|
@ -372,7 +372,7 @@ class CommentListState extends State<CommentList> {
|
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
if (member.createUser?.isNotEmpty ?? false) { |
|
|
|
|
showPressMenu(member.createUser!, memberList); |
|
|
|
|
showPressMenu(member.createUser!, memberList[index]); |
|
|
|
|
} |
|
|
|
|
setState(() {}); |
|
|
|
|
}, |
|
|
|
@ -398,6 +398,7 @@ class CommentListState extends State<CommentList> {
|
|
|
|
|
SizedBox( |
|
|
|
|
height: 12.h, |
|
|
|
|
), |
|
|
|
|
if(member.parentUserName != "" || member.parentContent != "") |
|
|
|
|
Container( |
|
|
|
|
margin: EdgeInsets.only(left: 68.w, right: 16.w), |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|