fix(app): hide iAgent FAB on My Agents tab to prevent confusion
The floating iAgent chat button was visible on the /my-agents page, causing users to accidentally open the iAgent chat instead of their own agent instance's chat. Hide the FAB when the My Agents tab is active (currentIndex == 1). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5d94ed4e8b
commit
73bd32b247
|
|
@ -157,7 +157,9 @@ class _ScaffoldWithNavState extends ConsumerState<ScaffoldWithNav>
|
||||||
Expanded(child: widget.child),
|
Expanded(child: widget.child),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
floatingActionButton: const FloatingRobotFab(),
|
// Hide the iAgent FAB on the My Agents tab so users don't mistake it
|
||||||
|
// for the per-instance chat button.
|
||||||
|
floatingActionButton: currentIndex == 1 ? null : const FloatingRobotFab(),
|
||||||
floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
|
floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
|
||||||
bottomNavigationBar: NavigationBar(
|
bottomNavigationBar: NavigationBar(
|
||||||
selectedIndex: currentIndex,
|
selectedIndex: currentIndex,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue