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

398
Views
Flutter: la prueba del widget nunca termina en Linux

Uso Flutter en Linux (Ubuntu). Simplemente creé una aplicación de escritorio Linux. También creé un widget de prueba, pero tengo un problema. Tengo dos casos de usuario: primero ejecuto mi aplicación. después de eso ejecuto la prueba, siempre me sale el error:

 /home/ubuntu/snap/flutter/common/flutter/bin/flutter --no-color test --machine --start- paused test/widget_test.dart Testing started at 10:00 AM ... package:flutter_tools/src/test/flutter_tester_device.dart 224:73 FlutterTesterTestDevice.finished ===== asynchronous gap =========================== dart:async/future.dart Future.any.onValue Failed to load "/home/ubuntu/StudioProjects/my-flutter/test/widget_test.dart": Shell subprocess ended cleanly. Did main() call exit()?

Para solucionarlo ejecuto estos comandos:

 flutter clean flutter pub get

Ejecuto la prueba (caso de dos usuarios) pero nunca termina: indicador de carga infinita

ingrese la descripción de la imagen aquí

Este es mi código, funciona en Windows:

 testWidgets('Counter increments smoke test', (WidgetTester tester) async { final pref = await SharedPreferences.getInstance(); await tester.pumpWidget(ProviderScope(overrides: [ settingsProvider.overrideWithValue( SettingsService(pref), ), ], child: const MyApp())); expect(find.text('1'), findsNothing); });

¿Es posible arreglar esto?

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!