Skip to content

Commit

Permalink
fix #683
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed May 19, 2020
1 parent 588e15c commit 448e945
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/page/repos/repostory_detail_info_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ class ReposDetailInfoPageState extends State<ReposDetailInfoPage>

///渲染时间Item或者提交Item
_renderEventItem(index) {
if (selectIndex == 1) {
var item = pullLoadWidgetControl.dataList[index];
if (selectIndex == 1 && item is RepoCommit) {
///提交
return new GSYEventItem(
EventViewModel.fromCommitMap(pullLoadWidgetControl.dataList[index]),
EventViewModel.fromCommitMap(item),
onPressed: () {
RepoCommit model = pullLoadWidgetControl.dataList[index];
NavigatorUtils.goPushDetailPage(
Expand Down

0 comments on commit 448e945

Please sign in to comment.