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:
@@ -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)),
|
||||
|
||||
@@ -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