Skip to content

Enhancements #4

Description

@nosmirck

First of all, thanks for the talk! I've been looking at your approach, so far so good!

A few things you can use to enhance the clean architecture is use commands (you already are familiar with them from Xamarin). Take a look at this case:

Future login() async {

Using something similar to AsyncCommand (from mvvm helpers on Xamarin) would solve the problem of knowing if the button can be enabled or not, if it is executing, etc. Imaging having a bit more complex UI with more buttons, you where I'm going.

I recently started using rxcommands for this, take a look and see if you can make something similar, smaller and more compact without all the bells and whistles that the package comes with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions