You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lightbox: Replace onDismiss with await showErrorDialog
`showDialog` returns a `Future` that resolves when the dialog is
dismissed.
This refactors `showErrorDialog` to stop overriding `onPressed` and
`barrierDismissible`, and make the caller call `Navigator.pop` one
more time once the dialog is closed.
This is not an nfc because now the user can tap the barrier (darkened
area around the dialog) to close it.
Note that we check for `mounted` again because there has been an
asynchronous gap.
See also:
#587 (comment)
Signed-off-by: Zixuan James Li <[email protected]>
0 commit comments