]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commit
login form: move condition into handler
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 13 Sep 2022 09:45:13 +0000 (11:45 +0200)
committerDominik Csapak <d.csapak@proxmox.com>
Fri, 21 Apr 2023 12:17:08 +0000 (14:17 +0200)
commita8758f87f578c6dd4d0c587e94cca30719d98264
tree5c2356cc80a0748196a13e15e0a6c94750d39471
parent2f3654f9e1f777f751789d7b5ee81347743e180d
login form: move condition into handler

move the if(snapshot.hasData) check into the onPressed handler instead
of generating a new widget, that way the widget is not recreated
every time the condition changes and the code gets much shorter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
lib/proxmox_login_form.dart