From ac8fc30b7745a9755c720f9863b668b5aa8bfb59 Mon Sep 17 00:00:00 2001 From: HuyNguyen Date: Tue, 26 Sep 2023 22:51:01 +0700 Subject: [PATCH] Fix can't go to home screen in error page --- lib/pages/error_page/error_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/error_page/error_page.dart b/lib/pages/error_page/error_page.dart index 908c68f9f4..5e6433f4af 100644 --- a/lib/pages/error_page/error_page.dart +++ b/lib/pages/error_page/error_page.dart @@ -76,7 +76,7 @@ class _ErrorPageBackButton extends StatelessWidget { Widget build(BuildContext context) { return TextButton.icon( icon: const Icon(Icons.arrow_back), - onPressed: () => _goToRooms, + onPressed: () => _goToRooms(context), label: Text( L10n.of(context)!.errorPageButton, ),