The above error caused by flutter_screen util package. It’s a version update problem. To resolve the error make sure you have the latest version of the plugin.

Error: The getter ‘physicalGeometry’ isn’t defined for the class ‘FlutterView’.

Let’s change the version to the latest one
flutter_screenutil: ^5.9.0