1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-22 04:06:35 +01:00

fix: hex color prefix

This commit is contained in:
Rongjian Zhang 2022-09-17 23:30:47 +08:00
parent 4e715d9697
commit d9c50cd0a9
2 changed files with 5 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class GhIssuesScreen extends StatelessWidget {
? null
: Wrap(spacing: 4, runSpacing: 4, children: [
for (var label in p.labels!.nodes!)
HexColorTag(name: label.name, color: label.color)
HexColorTag(name: label.name, color: '#${label.color}')
]),
url: '/github/$owner/$name/issues/${p.number}',
);

View File

@ -204,7 +204,8 @@ class TimelineItem extends StatelessWidget {
textSpan: TextSpan(children: [
TextSpan(text: ' ${AppLocalizations.of(context)!.added} '),
WidgetSpan(
child: HexColorTag(name: p.label.name, color: p.label.color)),
child: HexColorTag(
name: p.label.name, color: '#${p.label.color}')),
TextSpan(text: ' ${AppLocalizations.of(context)!.label}'),
]),
);
@ -216,7 +217,8 @@ class TimelineItem extends StatelessWidget {
textSpan: TextSpan(children: [
TextSpan(text: ' ${AppLocalizations.of(context)!.removed} '),
WidgetSpan(
child: HexColorTag(name: p.label.name, color: p.label.color)),
child: HexColorTag(
name: p.label.name, color: '#${p.label.color}')),
TextSpan(text: ' ${AppLocalizations.of(context)!.label}'),
]),
);