Skip to content

Commit

Permalink
Added pinned icon
Browse files Browse the repository at this point in the history
  • Loading branch information
devaryakjha committed Oct 23, 2023
1 parent 2dd7607 commit b8a3b63
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/features/user-library/ui/user_library_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,17 @@ class UserLibraryPage extends HookWidget {
),
),
title: Text(item.title ?? ''),
subtitle: Text(item.description ?? ''),
subtitle: Row(
children: [
if (item.isDownload || item.isFavorite)
Icon(
Icons.push_pin_rounded,
size: 12,
color: context.colorScheme.primary,
),
Expanded(child: Text(item.description ?? '')),
],
),
);
},
itemCount: library.length,
Expand Down

0 comments on commit b8a3b63

Please sign in to comment.