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.

fix(mobile): stop the two New agent buttons colliding as one hero

bubu-dududdd98f21be09
diff --git a/mobile/lib/phone/phone_fab.dart b/mobile/lib/phone/phone_fab.dart
index 4ffdf81ed..2a20016fe 100644
--- a/mobile/lib/phone/phone_fab.dart
+++ b/mobile/lib/phone/phone_fab.dart
@@ -30,6 +30,12 @@ class PhoneFab extends StatelessWidget {
AppTheme.watch(context);
return FloatingActionButton(
onPressed: onPressed,
+ // ⚠️ No hero flight, and it is not a preference. `FloatingActionButton` defaults to ONE
+ // shared tag for every instance, and this app keeps three tabs mounted at once inside an
+ // IndexedStack — so the Agents tab's button and a machine page's are in the tree together,
+ // and the first route transition after that throws "multiple heroes share the same tag" and
+ // takes the screen down. Nothing here is flying between routes anyway.
+ heroTag: null,
// The accent is specified as a solid fill with white on it, so the
// foreground is white in both themes rather than a token that flips.
backgroundColor: AppPalette.accent,