kmezger
kmezger

Reputation: 23

Flutter WebView Crashes on html select

I am trying to import a Website, at the first look, everything is fine, but when I try to open a html dropdown() my app is crashing

I only have this code :

import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

void main() {
    runApp(new MyApp());
}

class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
        return MaterialApp(
            title: 'Yeet',
                home: Scaffold(
                    body: Container(
                        child: Container(
                            child: WebView(
                                initialUrl: 'https://www.cortexpower.de',
          javascriptMode: JavascriptMode.unrestricted,
                                          ),
                                      height: 500,
                                  ),)));
    }
}

I've wasted so much time looking for any tips, but I couldn't find a solution.

This is a link to the dropdown

https://i.sstatic.net/EkVqr.jpg

Edit:

I created a new Android Device under Android 10 with 4 gb RAM and it is working totally fine

My other device has 1g and Android 5.1

Upvotes: 2

Views: 3044

Answers (1)

Ravinder Kumar
Ravinder Kumar

Reputation: 8000

After a bit of digging, I found that this issue is being discussed here and here and not fixed yet, so I would suggest using flutter_webview_plugin, Example

 WebviewScaffold(
      url: "https://www.cortexpower.de",
      ),

Output

enter image description here

Upvotes: 3

Related Questions