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,15 +101,16 @@ 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), leadingIcon: const Icon(MdiIcons.closeBoxMultiple),
child: Text('Close all from ${tab.url.host}'), child: Text('Close all from ${tab.url.host}'),
), ),
),
], ],
child: IconButton( child: IconButton(
visualDensity: const VisualDensity( visualDensity: const VisualDensity(