1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-16 02:11:11 +01:00

fix(gh): contributions data

This commit is contained in:
Rongjian Zhang 2020-10-05 16:47:26 +08:00
parent d2bb3c4a5c
commit c950559043

View File

@ -114,11 +114,14 @@ class GhUserScreen extends StatelessWidget {
]),
CommonStyle.border,
ContributionWidget(
weeks: p.contributionsCollection.contributionCalendar.weeks.map((e) {
return e.contributionDays.map((d) {
return ContributionDay(hexColor: d.color);
});
}),
weeks: [
for (final week
in p.contributionsCollection.contributionCalendar.weeks)
[
for (final day in week.contributionDays)
ContributionDay(hexColor: day.color)
]
],
),
CommonStyle.border,
TableView(