Directory

This commit is contained in:
2024-02-08 16:34:33 +08:00
parent b5f77c2736
commit ecb9bffe70
7 changed files with 125 additions and 34 deletions

View File

@ -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;
});