Commit ac0a214c authored by 杜欣's avatar 杜欣

bug 处理

parent 70689afb
...@@ -48,11 +48,11 @@ class LikeListItem extends StatelessWidget { ...@@ -48,11 +48,11 @@ class LikeListItem extends StatelessWidget {
Widget listItemRight() { Widget listItemRight() {
var commentImg; var commentImg;
if (item.type != 2) { if (item.type != 2) {
if (item.likeContent.content == null && if (item.likeContent.content != null &&
item.likeContent.contentType != 1) { item.likeContent.contentType != 1) {
commentImg = item.likeContent.content; commentImg = item.likeContent.content;
} }
if (item.likeContent.content != null && if (item.likeContent?.content == null &&
item.likeContent.contentType != 1) { item.likeContent.contentType != 1) {
commentImg = 'http://alpha.iyanzhi.com/topic/2019/08/16/63ef62d019-w'; commentImg = 'http://alpha.iyanzhi.com/topic/2019/08/16/63ef62d019-w';
} }
...@@ -102,20 +102,34 @@ class LikeListItem extends StatelessWidget { ...@@ -102,20 +102,34 @@ class LikeListItem extends StatelessWidget {
textTop = 0.0 ; textTop = 0.0 ;
} }
return Expanded( return Expanded(
child: Column( child: GestureDetector(
crossAxisAlignment: CrossAxisAlignment.start, onTap: () {
children: <Widget>[ if (item.likeContent.type == 0) {
Container( jumpToNative('url_page', {
margin: EdgeInsets.only(left: ScreenUtil.instance.setWidth(10.0)), "url": "alpha://topic_detail?topic_id=${item.likeContent.id}"
padding: EdgeInsets.only(top: ScreenUtil.instance.setHeight(textTop)), });
child: myText('${item.name??""}${item.content??""}${commentInfo??""}', ALColors.Color666666, 13.0), } else if (item.likeContent.type == 1) {
), jumpToNative('url_page', {
Padding( "url":
padding: EdgeInsets.only(left: ScreenUtil.instance.setWidth(10.0), top: ScreenUtil.instance.setHeight(3.0)), "alpha://topic_detail?call_keyboard=1&open_comment=1&topic_id=${item.likeContent.id}"
child: myText('${commenTime??""}', ALColors.Color999999, 10.0) });
) }
], },
), child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
margin: EdgeInsets.only(left: ScreenUtil.instance.setWidth(10.0)),
padding: EdgeInsets.only(top: ScreenUtil.instance.setHeight(textTop)),
child: myText('${item.name??""}${item.content??""}${commentInfo??""}', ALColors.Color666666, 13.0),
),
Padding(
padding: EdgeInsets.only(left: ScreenUtil.instance.setWidth(10.0), top: ScreenUtil.instance.setHeight(3.0)),
child: myText('${commenTime??""}', ALColors.Color999999, 10.0)
)
],
),
)
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment