dont show icon when null
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user