widgets/widgets library

Classes

GState<T extends GLifeCycleMixin>
GStateState<T extends GLifeCycleMixin>
GView<T>
GetView is a great way of quickly access your Controller without having to call GS.find
GWCache
GWCacheElement
GWidget<S extends GLifeCycleMixin>
GetWidget is a great way of quickly access your individual Controller without having to call GS.find
Observer
Obx
The simplest reactive widget in GState.
ObxElement
ObxStatelessWidget
A StatelessWidget than can listen reactive changes.
ObxValue<T extends RxInterface>
Similar to Obx, but manages a local state. Pass the initial data in constructor. Useful for simple local states, like toggles, visibility, themes, button states, etc. Sample: ObxValue((data) => Switch( value: data.value, onChanged: (flag) => data.value = flag, ), false.obs, ),
ObxWidget
The ObxWidget is the base for all GState reactive widgets
ValueBuilder<T>
Manages a local state like ObxValue, but uses a callback instead of a Rx value.
ValueBuilderState<T>
WidgetCache<T extends GWCache>

Mixins

StatelessObserverComponent
a Component that can track changes in a reactive variable

Extensions

LoopEventsExt on GSInterface

Typedefs

GStateControllerBuilder<T extends GLifeCycleMixin> = Widget Function(T controller)
ValueBuilderBuilder<T> = Widget Function(T snapshot, ValueBuilderUpdateCallback<T> updater)
ValueBuilderUpdateCallback<T> = void Function(T snapshot)
WidgetCallback = Widget Function()