What are Flutter equivalents to Android's View::onAttachedToWindow
and View::onDetachedFromWindow
?
Basically, in Flutter, how to determine if user can see a particular widget on screen or is it covered, for example, with another screen on top?
Flutter seem to have limited lifecycle events. Maybe what you're looking for can be achieved by overriding initState()
and deactivate()
. Checkout widget lifecycle here for more info
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With