mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Update mobile details page layout
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user