mvcprovider 2.0.3 copy "mvcprovider: ^2.0.3" to clipboard
mvcprovider: ^2.0.3 copied to clipboard

outdated

Write less & do more with the simplest syntax to implement an MVC pattern architecture in Flutter with the Provider package without a lot of boilerplate code.

[1.0.0] 03-14-2020 #

First release

[1.0.1] 03-14-2020 #

Fixed dart warnings and added an example folder with an example :)

[1.0.2] 03-14-2020 #

Ran flutter lib/mvcprovider.dart

[1.0.3] 03-14-2020 #

Replaced module's root widget Material by a widget Container

[1.0.4] 03-15-2020 #

Removed View's "StatelessWidget extends" in order to use it as a mixin and so permit to use it with StatefulWidgets if needed

[1.0.5] 06-10-2020 #

Updated sample doc Added getters for model and ctrl properties in the View mixin in order use it while extending from a StatelessWidget without the "immutable class with non final fields" warning

[1.0.6] 06-30-2020 #

Little refacto And added ability to add declare new providers at module level with "providers" property in addition to the "dependencies"

[1.0.7] 07-16-2020 #

Added overridable method onReady to the Controller in order to retrieve or init some data or just to do all you need to do once just after the first rendering of your view.

[1.0.8] 08-12-2020 #

Removed "refresh()" method in the model and controller in order use the original provider method "notifyListeners()" to keep your syntax compatible with the original flutter code. Spreading error syntax has been removed. Readme and example has been updated.

[2.0.0] 10-06-2020 #

[Breaking changes] Please rename Module, Model, Controller & View with MVC_Module, MVC_Model, MVC_Controller & MVC_View.

Please remove MVC_Module's property "dependencies". We don't need it anymore.

Now your services/providers should inherit from MVC_Provider, MVC_Notifier or MVC_ProxyProvider

To access dependencies inheriting from classes MVC_Provider, MVC_Notifier or MVC_ProxyProvider Please use: MyClassName(context).get instead of $[MyClassName] or Provider.of.

Please rename MVC_Controller's overrided methods onReady() & onRefresh() with ready() & update().

And note that init() ready() & update() methods are now also available in MVC_Model :)

Please replace your old provider declaration: ChangeNotifierProvider(create: (context) => MyClassName()); with the new MyClassName().create;

[2.0.1] 10-09-2020 #

MVC_Controller's method init() Fix. This method is also available in MVC_Model :)

The init() method is called at the end of create() so by overriding it you will access model or BuildContext easily in order to retrieve data or init some things.

[2.0.2] 10-09-2020 #

MVC_Controller's method ready() Fix. This method is also available in MVC_Model :)

The ready() method is called at the end of the first update() call. Just one time after the first frame. So just override it in case you need to manipulate rendered widgets or trigger rebuilds that can't be triggered in init() method.

[2.0.3] 10-09-2020 #

Forgot a little bit of code to fire the MVC_Model's ready event in order to call his method ready().

7
likes
0
pub points
41%
popularity

Publisher

verified publishermrdiez.com

Write less & do more with the simplest syntax to implement an MVC pattern architecture in Flutter with the Provider package without a lot of boilerplate code.

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, provider

More

Packages that depend on mvcprovider