1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Flutter web Webview ignores stack and nothing is clickable above the webview itself

Discussão em 'Mobile' iniciado por Stack, Novembro 3, 2024 às 09:52.

  1. Stack

    Stack Membro Participativo

    I have been using webview_flutter on my flutter app for months and it is working perfectly,, the webview widget is a base of stack widgets and has some other buttons above it :

    Stack(
    childrens:[
    WebView(
    initialUrl: 'https://flutter.dev',
    ),
    Positioned(
    top:100,
    bottom:100
    child:MaterialButton();
    ),
    Positioned(
    top:200,
    bottom:200
    child:MaterialButton();
    ),
    ]
    );



    in this case, it works fine and both Android and IOS, but when I switched to the web by using webview_flutter_web and added the default web view as follows in my main.dart :

    if (kIsWeb) {
    WebView.platform = WebWebViewPlatform();
    } else {
    WebView.platform = AndroidWebView();
    }


    the Webview itself worked, but the buttons above it are not clickable .. when click on It is interacts like am clicking the webview itself

    [​IMG]

    Continue reading...

Compartilhe esta Página