|
|
|
@ -22,6 +22,7 @@ class CommentList extends StatefulWidget {
|
|
|
|
|
final bool isKeyBoardShow; |
|
|
|
|
final Function reply; |
|
|
|
|
final Function delCommentTips; |
|
|
|
|
final double fontSize; |
|
|
|
|
|
|
|
|
|
CommentList( |
|
|
|
|
Key key, |
|
|
|
@ -31,6 +32,7 @@ class CommentList extends StatefulWidget {
|
|
|
|
|
this.isKeyBoardShow, |
|
|
|
|
this.reply, |
|
|
|
|
this.delCommentTips, |
|
|
|
|
this.fontSize |
|
|
|
|
) : super(key: key); |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@ -100,7 +102,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
Text( |
|
|
|
|
S.of(context).pinglun_(commentTotal.toString()), |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
fontSize:widget.fontSize+4, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0xff1A1A1A), |
|
|
|
|
), |
|
|
|
@ -112,7 +114,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
S.of(context).xihuan_( |
|
|
|
|
"${widget.article?.likes ?? widget.activity?.likes ?? "0"}"), |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
fontSize:widget.fontSize+4, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0xff1A1A1A), |
|
|
|
|
), |
|
|
|
@ -158,7 +160,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).yixiansquanbupinglun, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontSize:widget.fontSize+2, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -171,7 +173,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).zanwupinglun, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontSize:widget.fontSize+2, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0xFFA0A0A0), |
|
|
|
|
), |
|
|
|
@ -276,7 +278,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: Container( |
|
|
|
|
height: 60.h, |
|
|
|
|
// height: 60.h, |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
@ -288,7 +290,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
text: memberList.username, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontSize:widget.fontSize+2, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -296,12 +298,15 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
), |
|
|
|
|
textDirection: TextDirection.ltr, |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 3.h, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
memberList.createTime, |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
maxLines: 2, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontSize:widget.fontSize, |
|
|
|
|
color: Color(0xff808080), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -352,7 +357,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
text, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF1A1A1A), |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontSize:widget.fontSize, |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
@ -374,7 +379,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
child: Text( |
|
|
|
|
memberList.content, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontSize:widget.fontSize+2, |
|
|
|
|
color: Color(0xff1A1A1A), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -399,7 +404,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
Text( |
|
|
|
|
"${memberList.parentUserName}:" ?? "", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontSize: widget.fontSize, |
|
|
|
|
color: Color(0xff808080), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -408,7 +413,7 @@ class _CommentList extends State<CommentList> {
|
|
|
|
|
child: Text( |
|
|
|
|
memberList.parentContent ?? "", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontSize:widget.fontSize, |
|
|
|
|
color: Color(0xff808080), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|