✨ Directory
This commit is contained in:
@ -33,7 +33,7 @@ class _AgentNavigationState extends State<AgentNavigation> {
|
||||
|
||||
Future<void> initMessage(BuildContext context) async {
|
||||
void navigate() {
|
||||
widget.router.push("/notifications");
|
||||
widget.router.replace("/notifications");
|
||||
setState(() {
|
||||
_selected = 1;
|
||||
});
|
||||
@ -64,7 +64,7 @@ class _AgentNavigationState extends State<AgentNavigation> {
|
||||
labelBehavior: NavigationDestinationLabelBehavior.onlyShowSelected,
|
||||
destinations: AgentNavigation.items,
|
||||
onDestinationSelected: (index) {
|
||||
widget.router.push(AgentNavigation.destinations[index]);
|
||||
widget.router.replace(AgentNavigation.destinations[index]);
|
||||
setState(() {
|
||||
_selected = index;
|
||||
});
|
||||
|
Reference in New Issue
Block a user