1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-31 08:04:51 +01:00

fix: use spdx id of license

This commit is contained in:
Rongjian Zhang 2019-09-13 14:54:18 +08:00
parent 08e7c99c64
commit 1a9f7083ee

View File

@ -98,7 +98,7 @@ class RepoScreen extends StatelessWidget {
} }
licenseInfo { licenseInfo {
name name
nickname spdxId
} }
} }
} }
@ -274,7 +274,7 @@ class RepoScreen extends StatelessWidget {
text: Text('License'), text: Text('License'),
rightWidget: Text(payload['licenseInfo'] == null rightWidget: Text(payload['licenseInfo'] == null
? 'Unknown' ? 'Unknown'
: (payload['licenseInfo']['nickname'] ?? : (payload['licenseInfo']['spdxId'] ??
payload['licenseInfo']['name']) payload['licenseInfo']['name'])
.toString()), .toString()),
), ),