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: () {
|
onBeaconTap: () {
|
||||||
Navigator.of(context).push(
|
setState(() => _isRadialMenuVisible = false);
|
||||||
MaterialPageRoute(
|
widget.navigationShell.goBranch(2); // Navigate to beacon tab (index 2)
|
||||||
builder: (_) => BeaconScreen(),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue