3

what is the best approach to managing app lifecycle state?

would you do it using a getxservice with WidgetsBindingObserver?

thanks in advance.

Karan V
  • 163
  • 2
  • 10

1 Answers1

11

You can extend your controller class with FullLifeCycleController instead of GetXController. FullLifeCycleController actually extends GetXController with WidgetsBindingObserver.

This gist might help you out. :)

Mayur Agarwal
  • 1,448
  • 1
  • 14
  • 30