Martinocom / MoneygerAppSite

0 stars 0 forks source link

Decide once for all a good mechanism to pass data to parent screen from children (possibly, without events) #33

Open Martinocom opened 3 months ago

Martinocom commented 2 months ago

We should be able to tag type of "modals" that appears in app.

YES/NO

CHANGES DATA

FOR THEIR OWN

All the dialogs can be transformed into non-navigational ones, but there are some disadvantages:

There is a big advantage using embedded ones:

Probably the best way is using navigation for "their own" (you're doing completely unrelated things) and refactor the "Changes Data" with embedded (you are still in that screen and changing its data). Do not try to over-group things: modal currencies should receive its data and setter and don't have the async returning show. You can for sure keep DataError and DataConflict because they're too similar to be separated.

You should also implement a common "header" or "Container + Header" combo for both Navigation and embedded ones, but do not include buttons.