Improve back button function in all screens

This commit is contained in:
hanie.khodkari
2025-03-19 18:38:40 +03:30
parent d99ecb2783
commit 58cd3d9f3f
35 changed files with 4715 additions and 5007 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class ResultBanner extends StatelessWidget {
InkWell(
customBorder: CircleBorder(),
onTap: () {
Navigator.of(context).popAndPushNamed(push);
Navigator.of(context).pushNamed(push);
},
child: Container(
padding: EdgeInsets.all(5),
@@ -41,7 +41,7 @@ class LabelFloatingButtons extends StatelessWidget {
InkWell(
customBorder: CircleBorder(),
onTap: () {
Navigator.of(context).pushReplacementNamed(Routes.labelAddScreen);
Navigator.of(context).pushNamed(Routes.labelAddScreen);
},
child: Container(
padding: EdgeInsets.all(5),
@@ -41,8 +41,7 @@ class TestResultFloatingButton extends StatelessWidget {
InkWell(
customBorder: CircleBorder(),
onTap: () {
Navigator.of(context)
.pushReplacementNamed(Routes.testResultAddScreen);
Navigator.of(context).pushNamed(Routes.testResultAddScreen);
},
child: Container(
padding: EdgeInsets.all(_deviceBlockSize),