I have two stateful widgets: Widget1 and Widget2. Both defines the didChangeAppLifecycleState
method. When there is a change in the lifecycle of Widget1, it's corresponding didChangeAppLifecycleState
method is being called, but that for Widget2 is also being called.
Is that the normal behavior, is there a way to avoid this so that if for example, the app is put in the background while Widget1 is being shown, only the didChangeAppLifecycleState
in Widget1 is called?