Skip to content

Commit

Permalink
ptch: routes to login page after logout
Browse files Browse the repository at this point in the history
  • Loading branch information
am-casper committed Mar 18, 2024
1 parent 296c4c4 commit 7c49ced
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,9 @@ class AppSettingsPage extends StatelessWidget {
}
navigationService.pop();
navigationService.removeAllAndPush(
'/selectLang',
'/',
Routes.setUrlScreen,
Routes.splashScreen,
arguments: '',
);
} catch (e) {
navigationService.pushDialog(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:mockito/mockito.dart';
import 'package:provider/provider.dart';
import 'package:talawa/constants/constants.dart';
import 'package:talawa/constants/custom_theme.dart';
import 'package:talawa/constants/routing_constants.dart';
import 'package:talawa/models/language/language_model.dart';
import 'package:talawa/router.dart' as router;
import 'package:talawa/services/graphql_config.dart';
Expand Down Expand Up @@ -325,8 +326,9 @@ Future<void> main() async {
verify(navigationService.pop());
verify(
navigationService.removeAllAndPush(
'/selectLang',
'/',
Routes.setUrlScreen,
Routes.splashScreen,
arguments: '',
),
);
});
Expand Down

0 comments on commit 7c49ced

Please sign in to comment.