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

<Summarize your issues here> #44

Closed
isoos opened this issue Mar 12, 2018 · 3 comments
Closed

<Summarize your issues here> #44

isoos opened this issue Mar 12, 2018 · 3 comments

Comments

@isoos
Copy link

isoos commented Mar 12, 2018

From @GokulDharumar on March 12, 2018 19:28

URL: https://pub.dartlang.org/packages/flutter_webview_plugin
when i use PopupmenuButton with webviewscafold. the menus are not displayed on top of webview ... the webview kind of hides the menu

routes: {
"/": () => new MyHomePage(title: "Flutter WebView Demo"),
"/widget": (
) => new WebviewScaffold(
url: selectedUrl,
appBar: new AppBar(
title: new Text("Test"),

        actions: <Widget>[
          new PopupMenuButton<Choice>( // overflow menu
            onSelected: _select,
            itemBuilder: (BuildContext context) {
              return choices.skip(0).map((Choice choice) {
                return new PopupMenuItem<Choice>(
                  value: choice,
                  child: new Icon(choice.icon),
                );
              }).toList();
            },
          ),


        ],
      ),

    )
  },

Copied from original issue: dart-lang/pub-dev#1095

@GokulDharumar
Copy link

URL: https://pub.dartlang.org/packages/flutter_webview_plugin
when i use PopupmenuButton with webviewscafold. the menus are not displayed on top of webview ... the webview kind of hides the menu

routes: {
"/": () => new MyHomePage(title: "Flutter WebView Demo"),
"/widget": () => new WebviewScaffold(
url: selectedUrl,
appBar: new AppBar(
title: new Text("Test"),

    actions: <Widget>[
      new PopupMenuButton<Choice>( // overflow menu
        onSelected: _select,
        itemBuilder: (BuildContext context) {
          return choices.skip(0).map((Choice choice) {
            return new PopupMenuItem<Choice>(
              value: choice,
              child: new Icon(choice.icon),
            );
          }).toList();
        },
      ),


    ],
  ),

)

},

@lejard-h
Copy link
Collaborator

Since the webview is not a flutter widget, we draw Android webview or iOS webview on top of the flutter view, so a popup menu is not possible or any flutter widget on top of the webview is not possible

@GokulDharumar
Copy link

GokulDharumar commented Mar 14, 2018 via email

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