Skip to content

Commit

Permalink
work_items: show tags in detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
sstasi95 committed Oct 16, 2024
1 parent 88c3025 commit 6fe9dec
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lib/src/screens/work_item_detail/screen_work_item_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,36 @@ class _WorkItemDetailScreen extends StatelessWidget {
style: context.textTheme.titleSmall!.copyWith(color: context.colorScheme.onSecondary),
),
Text(detail.fields.systemTitle),
if (detail.fields.systemTags != null) ...[
const SizedBox(
height: 20,
),
Text(
'Tags',
style: context.textTheme.titleSmall!.copyWith(color: context.colorScheme.onSecondary),
),
const SizedBox(
height: 5,
),
Wrap(
spacing: 8,
runSpacing: 8,
children: [
for (final tag in detail.fields.systemTags!.split(';'))
Container(
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
decoration: BoxDecoration(
color: context.colorScheme.secondaryContainer,
borderRadius: BorderRadius.circular(100),
),
child: Text(
tag.trim(),
style: context.textTheme.titleSmall!.copyWith(height: 1),
),
),
],
),
],
if (detail.fields.systemAssignedTo != null) ...[
const SizedBox(
height: 20,
Expand Down

0 comments on commit 6fe9dec

Please sign in to comment.