Improved tags view
This commit is contained in:
@@ -77,35 +77,46 @@ class TagsScreen extends ConsumerWidget {
|
|||||||
return const SizedBox(height: 80);
|
return const SizedBox(height: 80);
|
||||||
}
|
}
|
||||||
final tag = tags.value?.content?.results?[index];
|
final tag = tags.value?.content?.results?[index];
|
||||||
return Column(
|
return InkWell(
|
||||||
|
onTap: () => {},
|
||||||
|
child: Container(
|
||||||
|
width: double.maxFinite,
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
Row(
|
||||||
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
|
children: [
|
||||||
dense: true,
|
Icon(
|
||||||
title: Text(
|
Icons.label_rounded,
|
||||||
|
size: 16,
|
||||||
|
color: Theme.of(context).colorScheme.onSurfaceVariant.withOpacity(0.7),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
Flexible(
|
||||||
|
child: Text(
|
||||||
tag!.name!,
|
tag!.name!,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: Theme.of(context).colorScheme.onSurface,
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
subtitle: Text(
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(height: 4),
|
||||||
|
Text(
|
||||||
t.tags.created(created: dateToString(tag.dateAdded!)),
|
t.tags.created(created: dateToString(tag.dateAdded!)),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
if (index < tags.value!.content!.results!.length - 1)
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
||||||
child: Divider(
|
|
||||||
color: Theme.of(context).colorScheme.tertiary.withOpacity(0.3),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user