platform_detect is blocking wasm builds and should no longer be needed. Replace usage of platform_detect with the built in operations in flutter 3.24:
https://api.flutter.dev/flutter/dart-ui_web/BrowserDetection-class.html