Skip to content

Commit

Permalink
fix: hide avatar of commit item if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Oct 11, 2020
1 parent 02e8d66 commit d37a5c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/widgets/commit_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ class CommitItem extends StatelessWidget {
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Avatar(url: avatarUrl, linkUrl: avatarLink),
SizedBox(width: 10),
if (avatarUrl != null) ...[
Avatar(url: avatarUrl, linkUrl: avatarLink),
SizedBox(width: 10),
],
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
Expand Down

0 comments on commit d37a5c1

Please sign in to comment.