Skip to content

Commit af3c165

Browse files
authored
fix(github): release screen error (#183)
1 parent 918d0f3 commit af3c165

File tree

1 file changed

+35
-31
lines changed

1 file changed

+35
-31
lines changed

lib/widgets/release_item.dart

+35-31
Original file line numberDiff line numberDiff line change
@@ -74,40 +74,44 @@ class ReleaseItem extends StatelessWidget {
7474
),
7575
SizedBox(height: 10),
7676
],
77-
ExpansionTile(
78-
title: Text(
79-
'Assets (' + (releaseAssets?.nodes?.length ?? 0).toString() + ')',
80-
style: TextStyle(
81-
color: theme.palette.secondaryText,
82-
fontSize: 18,
83-
fontWeight: FontWeight.w600,
77+
Card(
78+
color: theme.palette.grayBackground,
79+
margin: EdgeInsets.all(0),
80+
child: ExpansionTile(
81+
title: Text(
82+
'Assets (' + (releaseAssets?.nodes?.length ?? 0).toString() + ')',
83+
style: TextStyle(
84+
color: theme.palette.secondaryText,
85+
fontSize: 18,
86+
fontWeight: FontWeight.w600,
87+
),
8488
),
85-
),
86-
children: <Widget>[
87-
TableView(items: [
88-
if (releaseAssets != null)
89-
for (var asset in releaseAssets.nodes)
90-
TableViewItem(
91-
text: Text(
92-
asset.name,
93-
style: TextStyle(
94-
color: theme.palette.primary,
95-
fontSize: 14,
96-
fontWeight: FontWeight.w400,
89+
children: <Widget>[
90+
TableView(items: [
91+
if (releaseAssets != null)
92+
for (var asset in releaseAssets.nodes)
93+
TableViewItem(
94+
text: Text(
95+
asset.name,
96+
style: TextStyle(
97+
color: theme.palette.primary,
98+
fontSize: 14,
99+
fontWeight: FontWeight.w400,
100+
),
97101
),
102+
rightWidget: IconButton(
103+
onPressed: () {
104+
if (asset.downloadUrl != null) {
105+
theme.push(context, asset.downloadUrl);
106+
}
107+
},
108+
icon: Icon(Ionicons.download_outline)),
109+
hideRightChevron: true,
98110
),
99-
rightWidget: IconButton(
100-
onPressed: () {
101-
if (asset.downloadUrl != null) {
102-
theme.push(context, asset.downloadUrl);
103-
}
104-
},
105-
icon: Icon(Ionicons.download_outline)),
106-
hideRightChevron: true,
107-
),
108-
])
109-
],
110-
),
111+
])
112+
],
113+
),
114+
)
111115
],
112116
);
113117
}

0 commit comments

Comments
 (0)