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

835
Views
Error de Flutter: operación no admitida: Platform._version en la web

Uso paquetes http: ^ 0.12.2

este es mi puerto

 import 'package: http / http.dart' as http; import 'dart: io'; import 'dart: convert';

para recuperar los datos de un servidor. Funciona bien con Android e iOS. Pero en la web me sale el mensaje de error Operación no admitida: Platform._version

esta es mi función:

 Future getUserData() async { var url_ = "${APIDomain}/antragsteller/1"; HttpClient client = new HttpClient(); client.badCertificateCallback = ((X509Certificate cert, String host, int port) => true); HttpClientRequest request = await client.getUrl(Uri.parse(url_)); request.headers.set('content-type', 'application/json'); request.headers.set('Access-Control-Allow-Origin', '*'); HttpClientResponse response = await request.close(); String reply = await response.transform(utf8.decoder).join(); this.userData = jsonDecode(reply); }

el valor de retorno está entonces, por supuesto, vacío. Mi búsqueda en Internet no produjo ningún resultado útil. ¿Puede alguien ayudarme a encontrar la causa y resolver el problema? ¡Gracias!

over 4 years ago · Santiago Trujillo
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!