From d69c4a73c7692cbdefacb0a88f5f672291277e4e Mon Sep 17 00:00:00 2001 From: Saptarshi Adhikari <66560136+Mastermind-sap@users.noreply.github.com> Date: Mon, 17 Jun 2024 14:09:50 +0530 Subject: [PATCH] fixed bug of back button --- lib/landing_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/landing_page.dart b/lib/landing_page.dart index 1d7a89b..f9b76d8 100644 --- a/lib/landing_page.dart +++ b/lib/landing_page.dart @@ -82,10 +82,10 @@ class _LandingPageState extends State { borderRadius: BorderRadius.all(Radius.circular(20)), )), onPressed: () { - Navigator.push( + Navigator.pushReplacement( context, MaterialPageRoute( - builder: (context) => HomePage())); + builder: (context) => const HomePage())); }, child: Text( "Get started",