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!; return child!;
}, },
menuChildren: [ menuChildren: [
MenuItemButton( ?onDeleteAll.mapNotNull(
onPressed: onDeleteAll.mapNotNull( (p0) => MenuItemButton(
(p0) => () { onPressed: () {
p0(tab.url.host); 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( child: IconButton(