FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
106 stars 18 forks source link

custom widget web view fails to work #3257

Open cyberlion-ops opened 4 days ago

cyberlion-ops commented 4 days ago

Can we access your project?

Current Behavior

i made a custom widget web view where it accepts a parameter for a url to execute. when compiling it throws an unknown error. i managed to compile the code without the unknown error by hardcoding the url. but when testing the custom web view widget it shows the red error page. I have copied and tested multiple other codes of other people and it presented the same errors as my code.

Expected Behavior

the web view to function and display a web view of the passed url.

Steps to Reproduce

  1. create a custom widget.
  2. make a web view widget.
  3. pass the url through a parameter.
  4. will encounter an unknown error when compiling.
  5. remove url parameter and hard code a url.
  6. compile and run the custom widget you will encounter red error page.

Reproducible from Blank

Bug Report Code (Required)

ITEek8rl24V1j70F1brbK+5V9AMwGkQ5a7sviu5+FBQaI+P1E4l+PsjOYlFCcuqHdG5qKFCaoEQy/+jtjdjpKPU4HxOZGaJc+YdpUxDjTmW7RbqnBpaodXdSEftnCFy058KFrghQWdJYSmxiw2CQH+iAb3qCf9qOYwx5e6fDbOY=

Visual documentation

Screenshot 2024-06-26 192811 Screenshot 2024-06-26 192914 Screenshot 2024-06-26 193242

Environment

- FlutterFlow version: v4.1.64+
- Platform: windows Desktop, web
- Browser name and version:chrome  126.0.6478.63
- Operating system and version affected: windows 11  23H2

Additional Information

display a web view in order to register a user into a website

ignalauret commented 3 days ago

Hey @cyberlion-ops thanks for your report. I see that you are trying to use this package https://pub.dev/packages/flutter_inappwebview
Keep in mind that this package has configuration that must be done for it to work, for example "To make it work properly on the Web platform, you need to add the web_support.js file inside the <head> of your web/index.html file:"
Sadly I can't help you here to configure the package, but please feel free to contact our Customer Support so they can help you configuring this.
Have a great day!