Marc
07/13/2024, 9:39 AMForm
in compose desktop? (UX and Code based)
I have a View (with ViewModel) for the screen which displays all Employees
and allows the user to delete them. My idea was to put the Form for creating a new employee or updating an existing one in a popup and stay at the same screen.
However then, I would have to have all the form data fields in my EmployeeScreenState
, which could result in a heavy mess couldn't it?
On the other hand, I could put the form on a separate screen with a separate viewModel, but then I'd have a pretty empty screen with just some form-fields which looks weird imo.
What would be the best practice in this case?
Thanks in advance!Rok Oblak
07/14/2024, 6:07 AMMarc
07/14/2024, 10:36 AMRok Oblak
07/16/2024, 6:55 AM