Skip to content

add Webview #2

@moelfassi

Description

@moelfassi

Hi, I'm trying to use a WebviewScaffold by flutter_webview_plugin to replace the Text Widget in _getDescription, the problem is the webview is outside the container :

pic

my code:

 _getDescription(description) {
    return new Container(
      child:
        //new Text(description),
        new WebviewScaffold(
            url: new Uri.dataFromString(description, mimeType: 'text/html',encoding: utf8).toString()),
      width: double.infinity,
      margin: new  EdgeInsets.only(top: 10.0),
      height: 80,

    );
  }

please help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions