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

Flutter web rendering two or more easy_web_view fails #40

Closed
hydefus opened this issue Nov 28, 2020 · 2 comments
Closed

Flutter web rendering two or more easy_web_view fails #40

hydefus opened this issue Nov 28, 2020 · 2 comments

Comments

@hydefus
Copy link

hydefus commented Nov 28, 2020

Hi there

When rendering two or more easy_web_view objects in the same screen (inside a column and the each one in a container) only loads successfully the last one.

Column(
      children: <Widget>[
      Container(
        child: EasyWebView(
        src: "https://www.latercera.com",
        onLoaded: () {

        },
        isHtml: false,
        isMarkdown: false,
        convertToWidgets: false,
        width: 300,       
         height: 180,
      )),
        Container(
            child: EasyWebView(
              src: "https://www.emol.com",    
              onLoaded: () {

              },

              isHtml: false,
              isMarkdown: false,
              convertToWidgets: false,
              width: 300,
              height: 180,
            )),
]),
@PaulD1980
Copy link

PaulD1980 commented Jan 18, 2021

If you pass the unique key for each widget , it will work.

key: key1,

key:key2
.
etc.

@rodydavis
Copy link
Owner

You need a unique key for each instance. check out the example

Fixed on version 1.5.0, reopen if it is still an issue.

@rodydavis rodydavis pinned this issue Apr 7, 2021
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

3 participants