flutter get widget offset from container code example
Example: get position of a widget in screen flutter
@override void initState() { WidgetsBinding.instance.addPostFrameCallback(_afterLayout); super.initState(); } _afterLayout(_) { _getSizes(); _getPositions(); }