Amogh/fix: add BACK button to error dialog (#298)#408
Conversation
All error dialogs from showErrDialog now include a BACK button so
users can dismiss the alert and return to the previous view without
requiring navigation via the app bar or nav bar.
Adds ButtonLabel.back ('BACK') as first action alongside the existing
'OK' button in the AlertDialog returned by showErrDialog().
Imports notepod/constants/ui.dart for the ButtonLabel constant.
|
Thanks for the very clear PR @Amoghhosamane. But what is the difference between BACK and OK now? Don't they do the same thing and so we only need the OK? |
|
Thanks for reviewing @gjwgit. You're right urrently both My reasoning for adding
|
Description
When a user opens External Notes and clicks on a note that has no data (e.g. the note was deleted by the owner without first revoking access), an error popup is displayed via showErrDialog() in lib/widgets/err_dialogs.dart.
The popup had �arrierDismissible: false set, meaning the user must tap a button to dismiss it - but only a single OK button was present, and users could not intuitively find a way to return to the previous screen. The only workaround was navigating away via the app bar or nav bar.
What was changed:
otepod/constants/ui.dart to use the canonical ButtonLabel.back constant ('BACK'), consistent with the rest of the app's button style
Why this is required:
All error popups should have an appropriately labelled button to let the user escape the error screen, as specified in issue #298.
Related Issues
Closes #298
Type of Change
How To Test?
Checklist
Finalising