iOS Build Fails with 'dart:js_interop' Error

Troubleshooting

I'm working on a FlutterFlow project using Supabase (no Firebase) and trying to run it locally on iOS simulator via the FlutterFlow desktop app. The build fails with this error:

Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/web-1.1.1/lib/src/helpers.dart:24:8: Error: Dart library 'dart:js_interop' is not available on this platform.

After some research I did this suggests web-only dependencies are causing issues on a native iOS build. I’ve removed web-specific packages, but the error persists.

What have you tried so far?

Manually removed web-related packages (e.g., cached_network_image_web, shared_preferences_web, sign_in_with_apple_web, url_launcher_web) from pubspec.yaml

Did you check FlutterFlow's Documentation for this topic?
Yes