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