Faced this on Android. Didn't test other platform.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.0 23A344 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] Connected device (4 available)
[✓] Network resources
Problem description
Package: visibility_detector
Steps to reproduce
Expected behavior
In version 0.3.3, It works correctly as shown in the video:
https://github.com/google/flutter.widgets/assets/29230303/8e0f66a6-2c50-45bc-a8e3-34c87e74d8be
Actual behavior
In version 0.4.0 and after, It outputs incorrect values as shown in the video
https://github.com/google/flutter.widgets/assets/29230303/72485d2d-a714-40d9-bd9a-7ee1d95f8b40
Environment
Faced this on Android. Didn't test other platform. Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.3, on macOS 14.0 23A344 darwin-arm64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.1) [✓] Connected device (4 available) [✓] Network resources
• No issues found!
Additional details
N/A