From 6e44af0301a7526f98c140ecb80780adbbf2172a Mon Sep 17 00:00:00 2001 From: sherlock Date: Fri, 23 Jun 2023 15:41:47 +0700 Subject: [PATCH] improve: back button in create group chat back to new private chat --- lib/config/routes.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/config/routes.dart b/lib/config/routes.dart index eff35504aa..7fd8414b27 100644 --- a/lib/config/routes.dart +++ b/lib/config/routes.dart @@ -164,12 +164,13 @@ class AppRoutes { path: '/newprivatechat', widget: const NewPrivateChat(), buildTransition: rightToLeftTransition, - ), - VWidgetWithDependency( - di: ContactDI(), - path: '/newgroup', - widget: const NewGroup(), - buildTransition: rightToLeftTransition, + stackedRoutes: [ + VWidget( + path: '/newgroup', + widget: const NewGroup(), + buildTransition: rightToLeftTransition, + ), + ] ), ], )