mirror of
https://github.com/git-touch/git-touch
synced 2025-02-02 08:56:54 +01:00
fix(github): release screen error (#183)
This commit is contained in:
parent
918d0f3971
commit
af3c1655e4
@ -74,40 +74,44 @@ class ReleaseItem extends StatelessWidget {
|
||||
),
|
||||
SizedBox(height: 10),
|
||||
],
|
||||
ExpansionTile(
|
||||
title: Text(
|
||||
'Assets (' + (releaseAssets?.nodes?.length ?? 0).toString() + ')',
|
||||
style: TextStyle(
|
||||
color: theme.palette.secondaryText,
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600,
|
||||
Card(
|
||||
color: theme.palette.grayBackground,
|
||||
margin: EdgeInsets.all(0),
|
||||
child: ExpansionTile(
|
||||
title: Text(
|
||||
'Assets (' + (releaseAssets?.nodes?.length ?? 0).toString() + ')',
|
||||
style: TextStyle(
|
||||
color: theme.palette.secondaryText,
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
),
|
||||
children: <Widget>[
|
||||
TableView(items: [
|
||||
if (releaseAssets != null)
|
||||
for (var asset in releaseAssets.nodes)
|
||||
TableViewItem(
|
||||
text: Text(
|
||||
asset.name,
|
||||
style: TextStyle(
|
||||
color: theme.palette.primary,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
children: <Widget>[
|
||||
TableView(items: [
|
||||
if (releaseAssets != null)
|
||||
for (var asset in releaseAssets.nodes)
|
||||
TableViewItem(
|
||||
text: Text(
|
||||
asset.name,
|
||||
style: TextStyle(
|
||||
color: theme.palette.primary,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
rightWidget: IconButton(
|
||||
onPressed: () {
|
||||
if (asset.downloadUrl != null) {
|
||||
theme.push(context, asset.downloadUrl);
|
||||
}
|
||||
},
|
||||
icon: Icon(Ionicons.download_outline)),
|
||||
hideRightChevron: true,
|
||||
),
|
||||
rightWidget: IconButton(
|
||||
onPressed: () {
|
||||
if (asset.downloadUrl != null) {
|
||||
theme.push(context, asset.downloadUrl);
|
||||
}
|
||||
},
|
||||
icon: Icon(Ionicons.download_outline)),
|
||||
hideRightChevron: true,
|
||||
),
|
||||
])
|
||||
],
|
||||
),
|
||||
])
|
||||
],
|
||||
),
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user