deex 0.0.1+1 copy "deex: ^0.0.1+1" to clipboard
deex: ^0.0.1+1 copied to clipboard

unlisted

A state management library for Flutter, inspired by GetX, focusing exclusively on state management.

Deex #

Deex is a state management library for Flutter, based on GetX but focused exclusively on state management. This README provides an overview of how to use Deex in a Flutter application.

Installation #

Add Deex to your pubspec.yaml file:

dependencies:
  deex: # latest

Then run:

flutter pub get

Usage #

import 'package:deex/deex.dart';

Widget responsible for rebuilding Widgets #

The Deex widget makes the UI reactive to changes in the controller state, rebuilding the UI whenever the observed state changes.

Deex(
  () => Text('${controller.count.value}'),
),

The widget rebuilds itself every time the action is executed:

onPressed: controller.increment,

The Controller with reactive state #

The Controller extends DeexStore and contains the reactive state, using the .obs extension to make the variables observable.

class Controller extends DeexStore {
  var count = 0.obs;
  void increment() => count++;
}

License #

This project is licensed under the MIT license - see the LICENSE file for more details.

Contribution #

Contributions are welcome! Please open an issue or submit a pull request.

Author #

Maintained by Raphael Pontes.

Did I help you? Buy me a coffee.

4
likes
0
points
11
downloads

Publisher

verified publisherbetacoding.com.br

Weekly Downloads

A state management library for Flutter, inspired by GetX, focusing exclusively on state management.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, web

More

Packages that depend on deex