Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The method 'WebUri' isn't defined for the class '_WebViewChapaState'. #3

Open
ihsahm opened this issue May 13, 2024 · 2 comments

Comments

@ihsahm
Copy link

ihsahm commented May 13, 2024

../../../../AppData/Local/Pub/Cache/hosted/pub.dev/chapa_unofficial-0.0.5/lib/src/chapa_webview.dart:26:17: Error: The method 'WebUri' isn't defined for the class '_WebViewChapaState'.

  • '_WebViewChapaState' is from 'package:chapa_unofficial/src/chapa_webview.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dev/chapa_unofficial-0.0.5/lib/src/chapa_webview.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'WebUri'.
    final url = WebUri(widget.chapaCheckoutUrl);
    ^^^^^^
    ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/chapa_unofficial-0.0.5/lib/src/chapa_webview.dart:26:17: Error: The method 'WebUri' isn't defined for the class '_WebViewChapaState'.
  • '_WebViewChapaState' is from 'package:chapa_unofficial/src/chapa_webview.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dev/chapa_unofficial-0.0.5/lib/src/chapa_webview.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'WebUri'.
    final url = WebUri(widget.chapaCheckoutUrl);
    ^^^^^^
@mrnpro
Copy link
Owner

mrnpro commented Jun 7, 2024

Could you please let me know which version of Flutter you are using?

@ihsahm
Copy link
Author

ihsahm commented Jun 7, 2024

[√] Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.22631.3235], locale en-US)
• Flutter version 3.19.6 on channel stable at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 54e66469a9 (7 weeks ago), 2024-04-17 13:08:03 -0700
• Engine revision c4cd48e186
• Dart version 3.3.4
• DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\ihs27\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
• All Android licenses accepted.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[X] Visual Studio - develop Windows apps
X 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.3)
• Android Studio at C:\Program Files\Android\Android Studio
• 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
X Unable to determine bundled Java version.
• Try updating or re-installing Android Studio.

[√] Android Studio (version 2023.2)
• Android Studio at C:\Program Files\Android\Android Studio1
• 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.9+0--11185874)

[√] VS Code (version 1.87.0)
• VS Code at C:\Users\ihs27\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.90.0

[√] Connected device (2 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3235]
• Edge (web) • edge • web-javascript • Microsoft Edge 125.0.2535.85

[√] Network resources
• All expected network resources are available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants