clima
clima copied to clipboard
Afer entering an invalid API key once then leaving the dialog, errors for invalid API key don't show up again
Describe the bug After entering an invalid API key once then closing the API key dialog, an error doesn't show up below the text field if you enter an invalid API key again (it's still not saved, but you just don't see an error).
To Reproduce Steps to reproduce the behavior:
- Preess on Settings > API key
- Enter an invalid or bogus API key
- Wait for the error to show up
- Close the dialog, then press on "API key" to re-open it
- Enter an invalid or bogus API key, again
- The error doesn't show up
Expected behavior The error should show up.
Smartphone (please complete the following information):
- Device: Galaxy A51
- OS: Android 11
- App version: 2.0.0
Additional context It probably has something to do with these lines, but I'm not sure:
https://github.com/Lacerte/clima/blob/80fa0479ca0f21f44dd142db1955c53fe41fd689/packages/clima_ui/lib/widgets/dialogs/api_key/api_key_dialog.dart#L28-L36