Issue
I am using the new changeNotifier, so I dont use statefull Widgets at all. How can I use lifecycle events in stateless widget? I only found example for statefull widget. I specially need a event when the app gets destroyed. https://flutter.dev/docs/get-started/flutter-for/android-devs#how-do-i-listen-to-android-activity-lifecycle-events
Solution
This package might do the trick. https://pub.dev/packages/flutter_lifecycle_state
Answered By - Jairo R. Flores
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.