1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-24 23:01:18 +01:00

fix: minor fixes

This commit is contained in:
Rongjian Zhang 2019-12-25 11:05:25 +08:00
parent bb0d9d5d01
commit da48561b62

View File

@ -60,7 +60,7 @@ class EventItem extends StatelessWidget {
Expanded( Expanded(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: join(SizedBox(height: 4), [ children: join(SizedBox(height: 6), [
RichText( RichText(
text: TextSpan( text: TextSpan(
style: TextStyle( style: TextStyle(
@ -197,7 +197,7 @@ class EventItem extends StatelessWidget {
borderRadius: BorderRadius.all(Radius.circular(4))), borderRadius: BorderRadius.all(Radius.circular(4))),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: join(SizedBox(height: 8), [ children: join(SizedBox(height: 6), [
Row( Row(
children: <Widget>[ children: <Widget>[
IssueIcon(state, size: 20), IssueIcon(state, size: 20),
@ -233,17 +233,19 @@ class EventItem extends StatelessWidget {
color: theme.palette.tertiaryText, color: theme.palette.tertiaryText,
)), )),
Expanded(child: Container()), Expanded(child: Container()),
Icon( if (issue.comments != null) ...[
Octicons.comment, Icon(
size: 14, Octicons.comment,
color: theme.palette.tertiaryText, size: 14,
), color: theme.palette.tertiaryText,
SizedBox(width: 4), ),
Text(issue.comments.toString(), SizedBox(width: 4),
style: TextStyle( Text(issue.comments.toString(),
fontSize: 14, style: TextStyle(
color: theme.palette.tertiaryText, fontSize: 14,
)), color: theme.palette.tertiaryText,
)),
]
], ],
) )
]), ]),
@ -366,7 +368,8 @@ class EventItem extends StatelessWidget {
TextSpan(text: ' at '), TextSpan(text: ' at '),
_buildRepo(context), _buildRepo(context),
], ],
card: _buildIssueCard(context, pr, pr.body), card: _buildIssueCard(context, pr, e.payload.comment.body,
isPullRequest: true),
); );
case 'PushEvent': case 'PushEvent':
return _buildItem( return _buildItem(