clima icon indicating copy to clipboard operation
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

Open triallax opened this issue 3 years ago • 0 comments

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:

  1. Preess on Settings > API key
  2. Enter an invalid or bogus API key
  3. Wait for the error to show up
  4. Close the dialog, then press on "API key" to re-open it
  5. Enter an invalid or bogus API key, again
  6. 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

triallax avatar Feb 20 '22 12:02 triallax