Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
ac0a214c
Commit
ac0a214c
authored
Oct 29, 2019
by
杜欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 处理
parent
70689afb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
16 deletions
+30
-16
LikeListItem.dart
lib/NewMessageModel/page/likePage/LikeListItem.dart
+30
-16
No files found.
lib/NewMessageModel/page/likePage/LikeListItem.dart
View file @
ac0a214c
...
...
@@ -48,11 +48,11 @@ class LikeListItem extends StatelessWidget {
Widget
listItemRight
()
{
var
commentImg
;
if
(
item
.
type
!=
2
)
{
if
(
item
.
likeContent
.
content
=
=
null
&&
if
(
item
.
likeContent
.
content
!
=
null
&&
item
.
likeContent
.
contentType
!=
1
)
{
commentImg
=
item
.
likeContent
.
content
;
}
if
(
item
.
likeContent
.
content
!
=
null
&&
if
(
item
.
likeContent
?.
content
=
=
null
&&
item
.
likeContent
.
contentType
!=
1
)
{
commentImg
=
'http://alpha.iyanzhi.com/topic/2019/08/16/63ef62d019-w'
;
}
...
...
@@ -102,20 +102,34 @@ class LikeListItem extends StatelessWidget {
textTop
=
0.0
;
}
return
Expanded
(
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
)
)
],
),
child:
GestureDetector
(
onTap:
()
{
if
(
item
.
likeContent
.
type
==
0
)
{
jumpToNative
(
'url_page'
,
{
"url"
:
"alpha://topic_detail?topic_id=
${item.likeContent.id}
"
});
}
else
if
(
item
.
likeContent
.
type
==
1
)
{
jumpToNative
(
'url_page'
,
{
"url"
:
"alpha://topic_detail?call_keyboard=1&open_comment=1&topic_id=
${item.likeContent.id}
"
});
}
},
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
)
)
],
),
)
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment