refactor: Switch from maestro to flutter integration tests
This commit is contained in:
parent
c15be05246
commit
0a42f28cf1
34 changed files with 495 additions and 727 deletions
|
|
@ -85,7 +85,11 @@ class LoadingDialogState<T> extends State<LoadingDialog> {
|
|||
void initState() {
|
||||
super.initState();
|
||||
widget.future.then(
|
||||
(result) => Navigator.of(context).pop<Result<T>>(Result.value(result)),
|
||||
(result) {
|
||||
if (!mounted) return;
|
||||
if (!Navigator.of(context).canPop()) return;
|
||||
Navigator.of(context).pop<Result<T>>(Result.value(result));
|
||||
},
|
||||
onError: (e, s) => setState(() {
|
||||
exception = e;
|
||||
stackTrace = s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue