fix: Navigate to beacon tab instead of pushing new BeaconScreen to avoid duplicate GlobalKey error
This commit is contained in:
parent
6d43ae2b09
commit
b3abcf9c6e
|
|
@ -147,11 +147,8 @@ class _HomeShellState extends ConsumerState<HomeShell> with WidgetsBindingObserv
|
|||
);
|
||||
},
|
||||
onBeaconTap: () {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (_) => BeaconScreen(),
|
||||
),
|
||||
);
|
||||
setState(() => _isRadialMenuVisible = false);
|
||||
widget.navigationShell.goBranch(2); // Navigate to beacon tab (index 2)
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue