Skip to content

Commit 35471f9

Browse files
committed
Update tagged_files_screen.dart
1 parent 6c6da64 commit 35471f9

1 file changed

Lines changed: 18 additions & 11 deletions

File tree

lib/features/tags/screens/tagged_files_screen.dart

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ class TaggedFilesScreen extends ConsumerWidget {
2626
final tagState = ref.watch(tagProvider);
2727

2828
// Get the tag either from the passed parameter or from state
29-
final currentTag = tag ?? tagState.tags.where((t) => t.id == tagId).firstOrNull;
30-
final tagColor = currentTag != null ? Color(currentTag.colorValue) : Colors.purple;
29+
final currentTag =
30+
tag ?? tagState.tags.where((t) => t.id == tagId).firstOrNull;
31+
final tagColor =
32+
currentTag != null ? Color(currentTag.colorValue) : Colors.purple;
3133

3234
return Scaffold(
3335
appBar: AppBar(
@@ -65,20 +67,23 @@ class TaggedFilesScreen extends ConsumerWidget {
6567
child: Column(
6668
mainAxisAlignment: MainAxisAlignment.center,
6769
children: [
68-
Icon(LucideIcons.fileX, size: 64, color: Colors.grey[400]),
70+
Icon(LucideIcons.fileX,
71+
size: 64, color: Colors.grey[400]),
6972
const SizedBox(height: 16),
7073
Text(
7174
'No files with this tag',
72-
style: Theme.of(context).textTheme.titleMedium?.copyWith(
73-
color: Colors.grey[600],
74-
),
75+
style:
76+
Theme.of(context).textTheme.titleMedium?.copyWith(
77+
color: Colors.grey[600],
78+
),
7579
),
7680
const SizedBox(height: 8),
7781
Text(
7882
'Files tagged with "${currentTag?.name ?? 'this tag'}" will appear here',
79-
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
80-
color: Colors.grey[500],
81-
),
83+
style:
84+
Theme.of(context).textTheme.bodyMedium?.copyWith(
85+
color: Colors.grey[500],
86+
),
8287
textAlign: TextAlign.center,
8388
),
8489
],
@@ -104,7 +109,8 @@ class TaggedFilesScreen extends ConsumerWidget {
104109
child: Column(
105110
mainAxisAlignment: MainAxisAlignment.center,
106111
children: [
107-
Icon(LucideIcons.alertCircle, size: 48, color: Colors.red[300]),
112+
Icon(LucideIcons.alertCircle,
113+
size: 48, color: Colors.red[300]),
108114
const SizedBox(height: 16),
109115
Text('Error: $error'),
110116
],
@@ -132,7 +138,8 @@ class TaggedFilesScreen extends ConsumerWidget {
132138
);
133139
}
134140

135-
Future<void> _removeTag(BuildContext context, WidgetRef ref, TaggedFile taggedFile) async {
141+
Future<void> _removeTag(
142+
BuildContext context, WidgetRef ref, TaggedFile taggedFile) async {
136143
final confirmed = await showDialog<bool>(
137144
context: context,
138145
builder: (context) => AlertDialog(

0 commit comments

Comments
 (0)