Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

222
Visualizações
Sending parametrs for local html file in flutter webView

I'm trying to send url parameters to local html file in flutters webview, I was able to successfully read the parameters while using the chrome browser but cannot do it through webview. In the html file I'm using 'windows.location.search' to read urlParams.

_loadHtmlFromAssets() async {
//attach parameters to filePathurl
filePath = "assets/htmls/extreme_windspeed.html";
String fileHtmlContents = await rootBundle.loadString(filePath);
_webViewController.loadUrl(Uri.dataFromString(fileHtmlContents,
        parameters: {"p": "RAINFALL"}, //I want to read this parameter
        mimeType: 'text/html',
        encoding: Encoding.getByName('utf-8'))
    .toString());
}

If this is not a viable solution I would settle for anyother solution. Thanks!

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda