forked from escamoteur/flutter_command
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I don't like the design of Command in general.
It's similar to ObservableFuture from MobX, but instead of solid enum states (initial, running, success, failure) it has a boolean isRunning. That can potentially lead to a state inconsistency (isRunning == true but has data / errors at the same time).
Running and success/failure states should be mutually exclusive.
** Proposal **
Replace isRunning to a status enum.
Also, there's no widget like Observer or Selector.
I have to create a new widget each time and inherit from WatchingWidget.
I cannot wrap a piece of code into a Selector-like widget and subscribe it to a reactive value. Correct me if I'm wrong.
Metadata
Metadata
Assignees
Labels
No labels