1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-19 03:33:42 +01:00

improvement: check suite icon

This commit is contained in:
Rongjian Zhang 2019-12-26 18:06:10 +08:00
parent 4099baaadb
commit 15d8414f36

View File

@ -1,4 +1,3 @@
import 'package:fimber/fimber.dart';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:git_touch/widgets/issue_icon.dart';
@ -59,8 +58,9 @@ class _NotificationItemState extends State<NotificationItem> {
return _buildIcon(Octicons.tag);
case 'Commit':
return _buildIcon(Octicons.git_commit);
case 'CheckSuite':
return _buildIcon(Octicons.x, GithubPalette.closed);
default:
Fimber.d('Unhandled notification type: ${payload.subject.type}');
return _buildIcon(Octicons.octoface);
}
}