diff --git a/lib/views/home/bookmarks/bookmarks.dart b/lib/views/home/bookmarks/bookmarks.dart index 2a277ac..e39a5dc 100644 --- a/lib/views/home/bookmarks/bookmarks.dart +++ b/lib/views/home/bookmarks/bookmarks.dart @@ -133,6 +133,7 @@ class _BookmarksState extends State { onMarkChanged: state.onMarkChanged, hasUnmarkConfirmation: true, enableCaption: true, + enableBookmark: true, ); }, placeholder: MultitypeOverview.placeholder, diff --git a/lib/views/home/bookmarks/filtered_bookmark/filtered_bookmark.dart b/lib/views/home/bookmarks/filtered_bookmark/filtered_bookmark.dart index 6073873..ddc0697 100644 --- a/lib/views/home/bookmarks/filtered_bookmark/filtered_bookmark.dart +++ b/lib/views/home/bookmarks/filtered_bookmark/filtered_bookmark.dart @@ -75,6 +75,7 @@ class _FilteredBookmarksState extends State { value, true, ), + enableBookmark: true, ); // if (state.type == 'radar') { // return RadarOverview( diff --git a/lib/views/widgets/overview/multitype.dart b/lib/views/widgets/overview/multitype.dart index 366eb49..11246de 100644 --- a/lib/views/widgets/overview/multitype.dart +++ b/lib/views/widgets/overview/multitype.dart @@ -26,6 +26,7 @@ class MultitypeOverview extends StatelessWidget { final bool hasUnmarkConfirmation; final void Function(int id, bool value) onMarkChanged; final bool enableCaption; + final bool enableBookmark; const MultitypeOverview({ Key? key, @@ -33,6 +34,7 @@ class MultitypeOverview extends StatelessWidget { required this.onMarkChanged, this.hasUnmarkConfirmation = false, this.enableCaption = false, + this.enableBookmark = false, }) : super(key: key); get _targetPageArgs { @@ -251,17 +253,19 @@ class MultitypeOverview extends StatelessWidget { ), ), if (!enableCaption) const Spacer(), - const SizedBox( - width: 12, - ), - BookmarkButton( - value: item.marked, - onMarkChanged: (value) => onMarkChanged(item.id, value), - gestureSize: 32, - type: item.type, - itemId: item.id, - askForConfirmation: true, - ), + if (enableBookmark) ...[ + const SizedBox( + width: 12, + ), + BookmarkButton( + value: item.marked, + onMarkChanged: (value) => onMarkChanged(item.id, value), + gestureSize: 32, + type: item.type, + itemId: item.id, + askForConfirmation: true, + ), + ], ], ), ],