rodydavis / signals.dart

Reactive programming made simple for Dart and Flutter
http://dartsignals.dev
Apache License 2.0
426 stars 48 forks source link

Possible to create controller like GetxController #154

Closed nowfalsalahudeen closed 7 months ago

nowfalsalahudeen commented 7 months ago

Is it possible to create GetxController with onInit and OnClose methods, so keeping BL from UI, so its good for a mvc architectural pattern

and can you add a CLI for generating page , like getx CLI or mason a_page?

Solido commented 7 months ago

Signals does not aim to import other frameworks approach. See ValueSignal for something similar to GetxController.

A CLI is too early but you're gonna find a lot of examples that address basics conceptions with signals here: https://github.com/rodydavis/signals.dart/tree/main/examples

Starting with dart only files is the best way to progress with conception then you can just add Widgets that Watch your signals https://github.com/rodydavis/signals.dart/tree/main/examples/dart_examples/bin