refactor: PopScope Migration (#1674)

Co-authored-by: Benjamin Halko <benjaminhalko@hotmail.com>
This commit is contained in:
Pun Butrach 2024-02-18 08:32:32 +07:00 committed by GitHub
parent f5ba84d81e
commit 3b58d229da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 30 deletions

View file

@ -619,8 +619,8 @@ class ManagerAPI {
return showDialog(
barrierDismissible: false,
context: context,
builder: (context) => WillPopScope(
onWillPop: () async => false,
builder: (context) => PopScope(
canPop: false,
child: AlertDialog(
title: Text(t.warning),
content: ValueListenableBuilder(