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

447
Vistas
flutter with Sqflite : The return type 'Null' isn't a 'Future<_>', as required by the closure's context

I have a problem function of Inserted => The return type 'Null' isn't a 'Future<_>', as required by the closure's context

enter image description here

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

You have to add async to your function.

await database.transaction((txn) async { });

I would also replace then / catchError inside the function with await and try/catch.

about 4 years ago · Juan Pablo Isaza Denunciar

0

If function use async-await then you have to use Future

Future<void> -> function is future and return null
Future<String> -> function is future and return String as output

In above you can replace Future<_> by the return type you expect. I think you have to return int, it will help to know on which row CRUD operation is performed

about 4 years ago · Juan Pablo Isaza Denunciar
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