Open songsongtao opened 3 years ago
Having this same issue.
I got the same issue with Web Flutter 2.5.3
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.5.3, on macOS 12.1 21C52 darwin-x64, locale en-KH) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] VS Code (version 1.63.2) [✓] Connected device (1 available)
• No issues found!
[GETX] Instance "GetMaterialController" has been created [GETX] Instance "GetMaterialController" has been initialized
════════ Exception caught by widgets library ═══════════════════════════════════ The following UnsupportedError was thrown building Builder: Unsupported operation: Platform._operatingSystem
I found my problem is an error with another package of google_mobile_ads not supported in a web browser, not GetX.
I solved with code:
if (!kIsWeb)
web Flutter2.5