]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commit
login form: make onOriginSubmitted a required callback
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jul 2023 10:08:51 +0000 (12:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jul 2023 10:08:53 +0000 (12:08 +0200)
commit06ebbd20ce9b42b194c5cf29f07baa3434d012a2
tree2354e9d0872f54fcd19b45513b44e672c831317a
parent0de76be71c491b1253087755eb2ba28d418ed0e8
login form: make onOriginSubmitted a required callback

as an user can hit enter on the field to start a submission even if
the submit button is disabled, e.g., due to no origin value being
entered at all yet.

Basically we already had that as contract, as forced dereferencing
via ! for accessing the callback.

As the callback already checks the validation state itself we do not
need to change anything there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
lib/proxmox_login_form.dart