improve menu anchor show/hide controls

This commit is contained in:
Fabian Freund
2026-03-12 08:51:16 +01:00
parent 573bddff7e
commit a4cb08a12f
5 changed files with 74 additions and 12 deletions
@@ -429,7 +429,15 @@ class _TopSiteGridTileState extends State<_TopSiteGridTile> {
child: InkWell(
borderRadius: _TopSiteGridTile._borderRadius,
onTap: widget.onTap,
onLongPress: _hasMenu ? () => _menuController.open() : null,
onLongPress: _hasMenu
? () {
if (_menuController.isOpen) {
_menuController.close();
} else {
_menuController.open();
}
}
: null,
child: Stack(
fit: StackFit.expand,
children: [