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

@@ -21,6 +21,7 @@ class GalleryInfoDetail extends StatelessWidget {
alignment: Alignment.center,
margin: const EdgeInsets.symmetric(horizontal: 40),
child: Column(children: [
Container(padding: const EdgeInsets.only(top: 10)),
Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
Text(i18n.pages(meta.filecount),
style: TextStyle(color: cs.secondary)),

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(