Revert "Revert " fix routing and context issue""

This reverts commit 02eead0014.
This commit is contained in:
Serhii 2023-06-29 16:53:52 +03:00
parent 1ca09e692d
commit e36b86d0df
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@ class PresentReceiveOptionPicker extends StatelessWidget {
Container(
margin: EdgeInsets.only(bottom: 40),
child: InkWell(
onTap: () => Navigator.pop(context),
onTap: () => Navigator.pop(popUpContext),
child: CircleAvatar(
child: Icon(
Icons.close,

View file

@ -49,7 +49,7 @@ class AnonPayReceivePage extends BasePage {
minWidth: double.minPositive,
child: TextButton(
onPressed: () =>
Navigator.pushNamedAndRemoveUntil(context, Routes.dashboard, (route) => false),
Navigator.popUntil(context, (route) => route.isFirst),
child: _backButton),
),
);