state_controller 0.0.1 copy "state_controller: ^0.0.1" to clipboard
state_controller: ^0.0.1 copied to clipboard

discontinued
outdated

A new Flutter package.

state_controller #

A new Flutter package.

About #

This library is aimed at separating the logic of drawing a widget and changing its state. Please look at the example in the project.

Use StatefulWidget as a constructor, the widget is passed to the controller. A big request to use the methods of the life cycle controller.

Docs #

StateController

onCreate called when creating a controller in initState() of your state.

onWidgetUpdate called after changing the widget and before the method build() of your state.

onDispose called when the dispose() of your state.

changeState this method calls setState() in itself, and therefore requires the same parameters.

ControllerInjector<W extends StatefulWidget, SC extends StateController

ControllerInjector is an mixin. For the status link and the controller, you must specify YourState with ControllerInjector and override method createStateController().

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on state_controller