get_state_manager/get_state_manager library
Library providing state management utilities using Refreshed.
Classes
-
Bind<
T> -
BindElement<
T> - The BindElement is responsible for injecting dependencies into the widget tree so that they can be observed
-
Binder<
T> - Binding
-
Binding should be extended.
When using
GetMaterialApp
, allGetPage
s and navigation methods (like Get.to()) have abinding
property that takes an instance of Bindings to manage the dependencies() (via Get.put()) for the Route you are opening. - Binds
-
CustomStatus<
T> - A custom status indicating that the state is in a custom state.
-
EmptyStatus<
T> - A status indicating that the state is empty.
-
ErrorStatus<
T, S> - A status indicating that the state has encountered an error.
- FullLifeCycleController
- A controller with super lifecycles (including native lifecycles)
-
GetBuilder<
T extends GetxController> -
GetListenable<
T> -
A class that provides listenable behavior similar to
ValueNotifier
. -
GetNotifier<
T> - A class representing a state notifier with a Get lifecycle.
-
GetResponsiveView<
T> -
Extend this widget to build responsive view.
this widget contains the
screen
property that have all information about the screen size and type. You have two options to build it. 1- withbuilder
method you return the widget to build. 2- with methodsdesktop
,tablet
,phone
,watch
. the specific method will be built when the screen type matches the method when the screen isScreenType.Tablet
thetablet
method will be exuded and so on. Note if you use this method please set the propertyalwaysUseBuilder
to false Withsettings
property you can set the width limit for the screen types. -
GetResponsiveWidget<
T extends GetLifeCycleMixin> - A widget that provides responsiveness functionality by dynamically choosing which widget to build based on the screen type.
-
GetStatus<
T> - Represents the status of an asynchronous operation, such as loading, error, empty, success, or custom.
-
GetView<
T> - GetView is a great way of quickly access your Controller without having to call Get.find
-
GetWidget<
S extends GetLifeCycleMixin> - GetWidget is a great way of quickly access your individual Controller without having to call Get.find
-
GetX<
T extends GetLifeCycleMixin> - A widget that manages the lifecycle of a controller and rebuilds its child widget whenever the controller changes.
- GetxController
- Abstract class representing a GetX controller.
-
GetXState<
T extends GetLifeCycleMixin> - The state for the GetX widget.
-
LoadingStatus<
T> - A status indicating that the state is currently loading.
- Observer
- It's an experimental feature.
- Obx
- The simplest reactive widget in GetX.
- ObxElement
- A wrapper around a StatelessElement that enables observation of changes in the stateless widget's reactive dependencies.
- ObxStatelessWidget
- A stateless widget that can listen to reactive changes.
-
ObxValue<
T extends RxInterface> - Similar to Obx, but manages a local state. Pass the initial data in the constructor. Useful for simple local states, like toggles, visibility, themes, button states, etc.
- ObxWidget
- The ObxWidget is the base for all GetX reactive widgets.
- ResponsiveScreen
- A class that provides information about the current screen size and type.
- ResponsiveScreenSettings
- A class containing settings for responsive screen behavior.
- RxController
- A clean controller to be used with only Rx variables
-
StateController<
T> - A recommended way to use Getx with Future fetching
-
SuccessStatus<
T> -
A status indicating that the state has been successfully updated with data of type
T
. -
SuperController<
T> - A controller with super lifecycles (including native lifecycles) and StateMixins
-
Value<
T> -
A class similar to
ValueNotifier
with additional state management capabilities. -
ValueBuilder<
T> - Manages a local state like ObxValue, but uses a callback instead of a Rx value.
-
ValueBuilderState<
T> - The state associated with the ValueBuilder widget.
Enums
- ScreenType
- An enumeration representing different types of screens.
Mixins
- FullLifeCycleMixin
- A mixin that provides a full lifecycle implementation for controllers.
- GetResponsiveMixin
- A mixin that facilitates building responsive widgets by providing methods to conditionally choose which widget to build based on the screen type.
- GetSingleTickerProviderStateMixin
-
Used like
SingleTickerProviderMixin
but only with Get Controllers. Simplifies AnimationController creation inside GetxController. - GetTickerProviderStateMixin
-
Used like
TickerProviderMixin
but only with Get Controllers. Simplifies multiple AnimationController creation inside GetxController. - ScrollMixin
- this mixin allow to fetch data when the scroll is at the bottom or on the top
- StatelessObserverComponent
- A component that can track changes in a reactive variable.
-
StateMixin<
T> - A mixin that provides state management capabilities.
Extensions
- StateAccessExt on BuildContext
- Extension methods for accessing state in the context of a widget build.
-
StateExt
on StateMixin<
T> - Extension methods for the StateMixin class.
-
StatusDataExt
on GetStatus<
T> - Extension methods for the GetStatus class.
Typedefs
-
GetControllerBuilder<
T extends GetLifeCycleMixin> = Widget Function(T controller) -
Signature for a function that builds a widget with a controller of type
T
. -
GetXControllerBuilder<
T extends GetLifeCycleMixin> = Widget Function(T controller) - A typedef representing a builder function for GetX controllers.
-
InitBuilder<
T> = T Function() -
Signature for a function that creates an object of type
T
. -
NotifierBuilder<
T> = Widget Function(T state) - A builder function for creating widgets based on a state.
-
ValueBuilderBuilder<
T> = Widget Function(T snapshot, ValueBuilderUpdateCallback< T> updater) - A function that builds a widget based on the current value and an updater function.
-
ValueBuilderUpdateCallback<
T> = void Function(T snapshot) - A callback function that is called when the value builder updates its value.
- WidgetCallback = Widget Function()
- Callback signature for a widget builder function.
Exceptions / Errors
-
BindError<
T>