Update mobile details page layout

This commit is contained in:
2024-01-26 13:15:27 +08:00
parent e6363ff4fb
commit 94bcb53603
7 changed files with 63 additions and 19 deletions

View File

@@ -33,7 +33,7 @@ class ImageWithContextMenu extends StatelessWidget {
Widget build(BuildContext context) {
return ContextMenuWidget(
menuProvider: (_) {
var list = [
var list = <MenuElement>[
MenuAction(
title: AppLocalizations.of(context)!.copyImage,
callback: () async {
@@ -65,6 +65,9 @@ class ImageWithContextMenu extends StatelessWidget {
}
}));
}
if ((isNsfw != null && changeNsfw != null) || (isAd != null && changeAd != null)) {
list.add(MenuSeparator());
}
if (isNsfw != null && changeNsfw != null) {
final nsfw = isNsfw!();
list.add(MenuAction(