only pop from notifications list if Navigator reports canPop
This commit is contained in:
parent
45d69b0b9f
commit
684d6bad82
1 changed files with 3 additions and 1 deletions
|
|
@ -135,7 +135,9 @@ class const NotificationsList({
|
||||||
child: HighlightWrapper(
|
child: HighlightWrapper(
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
Navigator.of(context).pop();
|
final navigator = Navigator.of(context);
|
||||||
|
if (navigator.canPop()) navigator.pop();
|
||||||
|
|
||||||
await ref.focusRoom(roomId, rowId);
|
await ref.focusRoom(roomId, rowId);
|
||||||
},
|
},
|
||||||
child: IgnorePointer(
|
child: IgnorePointer(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue