data_monitor 1.1.2 copy "data_monitor: ^1.1.2" to clipboard
data_monitor: ^1.1.2 copied to clipboard

A Data Monitor package that encapsulates Annotations, Example and Utilities.

Details #

This package allows Flutter projects to utilize State Management to overcome some of the limitations enforced by the framework.

Its main use is to create data repositories or models that allow callers to be notified when changes are made to member fields. These changes are tracked internally and cause Widgets that use the data to be rebuilt.

No more calls to setState().

Features #

Can be used (with more efficiency) to rebuild StatelessWidget. You can remove all the verbose State code that is usually associated with a StatefulWidget.

Getting started #

The package is very simple to use. Just add code like the following to your data model class:

@dataMonitor
abstract class ModelData extends ChangeNotifier {
  @monitor
  int count;

  @monitor
  String name = 'A Name';
}

Usage #

A fully working Flutter Application that describes how to use the various features is available in the /example directory.

Additional information #

You can also use the data_monitor_generators package to automatically generate boilerplate code from @annotations like the ones seen above (using build_runner).

2
likes
0
points
260
downloads

Publisher

verified publishernqcomputing.com

Weekly Downloads

A Data Monitor package that encapsulates Annotations, Example and Utilities.

Repository (GitHub)
View/report issues

Topics

#codegen #state-management

License

unknown (license)

Dependencies

flutter, flutter_hooks

More

Packages that depend on data_monitor