Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

227
Views
Cómo encontrar una forma de encontrar un clic particular del evento div/span desde webview en flutter

Estoy usando flutter_inappwebview: any en el proyecto, así que estoy cargando la vista web con este paquete y quiero rastrear algunos eventos de esa parte de la vista web. Así que mi código es el siguiente

 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/#/*******", )), ), ); }

Quiero rastrear eventos siguiendo el método div. Aquí está el código div/span de html webview. ¿Cómo puedo detectar eventos que están asignados con números?

 <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>

¿Es posible? Cualquier ayuda sería apreciada.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!