Added shared bookmarks screen and archived bookmarks screen

This commit is contained in:
Juan Gilsanz Polo
2024-02-28 01:13:55 +01:00
parent 4633023b4f
commit 06df3c2e0a
18 changed files with 663 additions and 236 deletions

View File

@@ -63,8 +63,10 @@ class BookmarkItem extends ConsumerWidget {
SlidableAction(
onPressed: (ctx) => onArchiveUnarchive(bookmark),
backgroundColor: Colors.grey,
label: t.bookmarks.bookmarkOptions.archive,
icon: Icons.archive_rounded,
label: bookmark.isArchived == true
? t.bookmarks.bookmarkOptions.unarchive
: t.bookmarks.bookmarkOptions.archive,
icon: bookmark.isArchived == true ? Icons.unarchive_rounded : Icons.archive_rounded,
padding: const EdgeInsets.all(4),
),
SlidableAction(
@@ -73,7 +75,7 @@ class BookmarkItem extends ConsumerWidget {
builder: (ctx) => ShareOptionsModal(bookmark: bookmark, onShareInternally: onShareInternally),
),
backgroundColor: Colors.orange,
label: t.bookmarks.bookmarkOptions.share,
label: t.bookmarks.bookmarkOptions.shareOptions,
icon: Icons.share_rounded,
padding: const EdgeInsets.all(4),
),