dont show icon when null

This commit is contained in:
Fabian Freund
2025-06-29 20:09:43 +02:00
parent 641c258d06
commit 9a1f36a029
@@ -101,14 +101,15 @@ class TabPreview extends HookWidget {
return child!;
},
menuChildren: [
MenuItemButton(
onPressed: onDeleteAll.mapNotNull(
(p0) => () {
?onDeleteAll.mapNotNull(
(p0) => MenuItemButton(
onPressed: () {
p0(tab.url.host);
},
leadingIcon: const Icon(MdiIcons.closeBoxMultiple),
child: Text('Close all from ${tab.url.host}'),
),
leadingIcon: const Icon(MdiIcons.closeBoxMultiple),
child: Text('Close all from ${tab.url.host}'),
),
],
child: IconButton(