rx_widgets library
Classes
-
RxCommandBuilder<T>
-
Spinner/Busyindicator that reacts on the output of a
Stream<CommandResult<T>>
. It's made especially to work together with
RxCommand
from the rx_command
package.
it starts running as soon as an item with isExecuting==true
is received
until isExecuting==true
is received.
To react on other possible states (data, nodata, error
) that can be emitted it offers three option Builder
methods
-
RxLoader<T>
-
Spinner/Busyindicator that reacts on the output of a
Stream<CommandResult<T>>
. It's made especially to work together with
RxCommand
from the rx_command
package.
it starts running as soon as an item with isExecuting==true
is received
until isExecuting==true
is received.
To react on other possible states (data, nodata, error
) that can be emitted it offers three option Builder
methods
-
RxRaisedButton
-
a reimplementation of a
RaisedButton
where the onPressed
is replaced with rxCommand
so the button gets disabled if the rxCommand
has the canExecute
set to false
or when it is executing
-
RxSpinner
-
Spinner/Busyindicator that reacts on the output of a
Stream<bool>
it starts running as soon as a true
value is received
until the next false
is emitted. If the Spinner should replace another Widget while Spinning this widget can be passed as normal
parameter.
RxSpinner
also adapts to the current or specified platform look.
Needless to say that RxSpinner
is ideal in combination with RxCommand's
isExecuting
Observable
-
RxText
-
A reimplementation of
Text
so it takes a Stream<String>
instead of String
as data
and reacts on it.
-
WidgetBuilderSelector
-
WidgetBuilderSelector
is a convenience class that will one of two builder methods based on the output of a Stream<bool>
This is pretty handy if you want to react to state change like enable/disable in you ViewModel and update
the View accordingly.
In comparrison to WidgetSelector
this is best used if the alternative child widgets are large so that you don't want to have them created
without using them.
-
WidgetSelector
-
WidgetSelector
is a convenience class that will return one of two Widgets based on the output of a Stream<bool>
This is pretty handy if you want to react to state change like enable/disable in you ViewModel and update
the View accordingly.
If you don't need builders for the alternative child widgets this class offers a more concise expression than WidgetBuilderSelector