flutter_native_view
flutter_native_view copied to clipboard
[Dart] Efficiently detect changes in position/size of NativeView
Right now, I just use following extension to get global coordinates of a Widget & it works great:
https://github.com/alexmercerind/flutter_native_view/blob/783dc566a0b51e724b6f6a5be1cd195fb34ce591/lib/src/widgets.dart#L116-L127
But, the problem is what can be an efficient way to detect when a Widget is moved on the screen or it's size is changed.
If anyone experienced in Flutter/Dart has some idea about this, please feel free to share.
Thanks.
I think the first solution may help you https://stackoverflow.com/questions/63467726/listen-to-orientation-state-in-flutter-before-after-rotation