Description
The package flutter_web_auth_2 has resolved compatibility issues with the latest Flutter version in flutter_web_auth_2 v4.1.0. However, oauth_client2 is not compatible with flutter_web_auth_2 v4.1.0, causing build issues when trying to use both packages together.
Steps to Reproduce
- Use Flutter (3.29.0).
- Add oauth_client2: 3.3.0 to the project.
- Add flutter_web_auth_2: 4.1.0 to the project dependencies.
- Run flutter pub get or try to build the project.
Expected Behavior
The oauth_client2 package should support flutter_web_auth_2 v4.1.0 to resolve the build issues with the latest Flutter version.
Proposed Solution
Please update oauth_client2 to be compatible with flutter_web_auth_2 v4.1.0.
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.29.0, on Microsoft Windows [Version 10.0.22631.4890], locale en-US) [457ms]
• Flutter version 3.29.0 on channel stable at D:\flutter_windows_3.29.0-stable\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 35c388afb5 (2 weeks ago), 2025-02-10 12:48:41 -0800
• Engine revision f73bfc4522
• Dart version 3.7.0
• DevTools version 2.42.2
[✓] Windows Version (11 Enterprise 64-bit, 23H2, 2009) [3.9s]
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3) [505ms]
• Android SDK at C:\Users\MohanRajSrinivasan\AppData\Local\Android\sdk
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/to/windows-android-setup for more details.
[✓] Chrome - develop for the web [47ms]
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[✗] Visual Studio - develop Windows apps [45ms]
✗ Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[✓] Android Studio (version 2022.2) [41ms]
• Android Studio at C:\Program Files\Android\Android Studio3
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
[!] Android Studio (version 2024.2) [38ms]
• Android Studio at C:\Program Files\Android\Android Studio2
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
✗ Unable to determine bundled Java version.
• Try updating or re-installing Android Studio.
[✓] VS Code (version 1.97.2) [37ms]
• VS Code at C:\Users\MohanRajSrinivasan\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.104.0
[✓] VS Code, 64-bit edition (version unknown) [36ms]
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.104.0
✗ Unable to determine VS Code version.
[✓] Connected device (4 available) [829ms]
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 14 (API 34) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.4890]
• Chrome (web) • chrome • web-javascript • Google Chrome 133.0.6943.127
• Edge (web) • edge • web-javascript • Microsoft Edge 133.0.3065.82
[✓] Network resources [818ms]
• All expected network resources are available.
! Doctor found issues in 3 categories.
Description
The package flutter_web_auth_2 has resolved compatibility issues with the latest Flutter version in flutter_web_auth_2 v4.1.0. However, oauth_client2 is not compatible with flutter_web_auth_2 v4.1.0, causing build issues when trying to use both packages together.
Steps to Reproduce
Expected Behavior
The oauth_client2 package should support flutter_web_auth_2 v4.1.0 to resolve the build issues with the latest Flutter version.
Proposed Solution
Please update oauth_client2 to be compatible with flutter_web_auth_2 v4.1.0.
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.29.0, on Microsoft Windows [Version 10.0.22631.4890], locale en-US) [457ms]
• Flutter version 3.29.0 on channel stable at D:\flutter_windows_3.29.0-stable\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 35c388afb5 (2 weeks ago), 2025-02-10 12:48:41 -0800
• Engine revision f73bfc4522
• Dart version 3.7.0
• DevTools version 2.42.2
[✓] Windows Version (11 Enterprise 64-bit, 23H2, 2009) [3.9s]
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3) [505ms]
• Android SDK at C:\Users\MohanRajSrinivasan\AppData\Local\Android\sdk
✗ cmdline-tools component is missing
Run
path/to/sdkmanager --install "cmdline-tools;latest"See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run
flutter doctor --android-licensesto accept the SDK licenses.See https://flutter.dev/to/windows-android-setup for more details.
[✓] Chrome - develop for the web [47ms]
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[✗] Visual Studio - develop Windows apps [45ms]
✗ Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[✓] Android Studio (version 2022.2) [41ms]
• Android Studio at C:\Program Files\Android\Android Studio3
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
[!] Android Studio (version 2024.2) [38ms]
• Android Studio at C:\Program Files\Android\Android Studio2
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
✗ Unable to determine bundled Java version.
• Try updating or re-installing Android Studio.
[✓] VS Code (version 1.97.2) [37ms]
• VS Code at C:\Users\MohanRajSrinivasan\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.104.0
[✓] VS Code, 64-bit edition (version unknown) [36ms]
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.104.0
✗ Unable to determine VS Code version.
[✓] Connected device (4 available) [829ms]
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 14 (API 34) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.4890]
• Chrome (web) • chrome • web-javascript • Google Chrome 133.0.6943.127
• Edge (web) • edge • web-javascript • Microsoft Edge 133.0.3065.82
[✓] Network resources [818ms]
• All expected network resources are available.
! Doctor found issues in 3 categories.