Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

233
Vistas
How to find a way around to find particular click of div/span event from webview in flutter

I am using flutter_inappwebview: any in project, So I am loading webview with this package and I want to track some events from that webview part. So my code is as follows

  Widget build(BuildContext context) {
    return SafeArea(
      child: InAppWebView(
        initialOptions: InAppWebViewGroupOptions(
            crossPlatform: InAppWebViewOptions(javaScriptEnabled: true)),
        onWebViewCreated: (controller) {
          webViewController = controller;
          WidgetsBinding.instance?.addPostFrameCallback((_) {
            Timer(
              Duration(seconds: 6),
              () => (webviewTracking()),
            );
          });
        },
        onConsoleMessage: (controller, consoleMessage) {
          print(consoleMessage);
        },
        initialUrlRequest: URLRequest(
            url: Uri.parse(
          "https://**********.com/#/*******",
        )),
      ),
    );
  }

I want to track events from following div method. Here is the div/span code of html webview. How can I detect events that is assigned with numbers?

  <div data-v-4437aff0="" class="native-box">
    <div data-v-4437aff0="" class="rtc__jian-pan">
      <span data-v-4437aff0="">1</span>
      <span data-v-4437aff0="">2</span>
      <span data-v-4437aff0="">3</span>
      <span data-v-4437aff0="">4</span>
      <span data-v-4437aff0="">5</span>
      <span data-v-4437aff0="">6</span>
      <span data-v-4437aff0="">7</span>
      <span data-v-4437aff0="">8</span>
      <span data-v-4437aff0="">9</span>
      <span data-v-4437aff0="" class="kong">Cancel</span>
      <span data-v-4437aff0="" class="ling">0</span>
      <span data-v-4437aff0="" class="icon">
        <i data-v-4437aff0="" class="van-icon van-icon-delete-o">
          <!---->
        </i>
      </span>
    </div>
  </div>
</div>

Is it possible? Any help would be appreciated.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda