Skip to content

Commit

Permalink
Fix popup menu button for Mokuro
Browse files Browse the repository at this point in the history
  • Loading branch information
arianneorpilla committed May 10, 2023
1 parent 92e8318 commit 70707c2
Showing 1 changed file with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,28 @@ class _MokuroCatalogManageDialogPageState
}

Widget buildCatalogTileTrailing(MokuroCatalog catalog) {
return JidoujishoIconButton(
padding: EdgeInsets.zero,
constraints: const BoxConstraints(),
icon: Icons.more_vert,
onTapDown: (details) => openCatalogOptionsMenu(
details: details,
catalog: catalog,
return ClipRRect(
borderRadius: BorderRadius.circular(24),
child: Material(
color: Colors.transparent,
child: PopupMenuButton<VoidCallback>(
splashRadius: 20,
padding: EdgeInsets.zero,
tooltip: t.show_options,
child: Container(
height: 30,
width: 30,
alignment: Alignment.center,
child: Icon(
Icons.more_vert,
color: theme.iconTheme.color,
size: 24,
),
),
color: Theme.of(context).popupMenuTheme.color,
onSelected: (value) => value(),
itemBuilder: (context) => getMenuItems(catalog)),
),
tooltip: t.show_options,
);
}

Expand Down

0 comments on commit 70707c2

Please sign in to comment.