fix routing and context issue

This commit is contained in:
Serhii 2023-06-29 14:00:12 +03:00
parent e592c892cc
commit e1fe03ca28
2 changed files with 2 additions and 2 deletions

View file

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

View file

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