getx_lite 4.6.5 copy "getx_lite: ^4.6.5" to clipboard
getx_lite: ^4.6.5 copied to clipboard

Getx™ reactive state management.

GetX Lite #

The getx_lite is a lightweight package derived from the popular GetX™ library, offering just the reactive state management features. This package is intended for developers who love the simplicity of GetX's state management, but prefer using other packages for dependency injection, translation, navigation, theming, etc.

This package exports the following components from GetX:

Reactive types from package:

export 'package:get/get_rx/src/rx_types/rx_types.dart';

Obx widget from package:

export 'package:get/get_state_manager/src/rx_flutter/rx_obx_widget.dart';

The version of this package will always reflect the version of the get package.

All rights to GetX™ are reserved by the original author.

Getx - Reactive State Management #


Reactive programming with Get is as easy as using setState.

Let's imagine that you have a name variable and want that every time you change it, all widgets that use it are automatically changed.

This is your count variable:

var name = 'Jonatas Borges';

To make it observable, you just need to add ".obs" to the end of it:

var name = 'Jonatas Borges'.obs;

And in the UI, when you want to show that value and update the screen whenever the values changes, simply do this:

Obx(() => Text("${controller.name}"));

That's all. It's that simple.

0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

Getx™ reactive state management.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, get

More

Packages that depend on getx_lite