Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Use null-aware search action child

dee8be19868ff78
diff --git a/desktop/lib/widgets/swarm_search_input.dart b/desktop/lib/widgets/swarm_search_input.dart
index 0a8640426..c4f64b1ba 100644
--- a/desktop/lib/widgets/swarm_search_input.dart
+++ b/desktop/lib/widgets/swarm_search_input.dart
@@ -98,7 +98,7 @@ class SwarmSearchInput extends StatelessWidget {
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
- if (trailing != null) trailing!,
+ ?trailing,
if (showClose)
TextButton(
onPressed: onClose,