1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Make a recursive function with Navigator.push flutter

Discussão em 'Mobile' iniciado por Stack, Março 25, 2025.

  1. Stack

    Stack Membro Participativo

    I have a ListView.builder that gets its data from:

    EnsaioItemModel ensaioitem = snapshot.data![index];


    no onTap: ()

    I call the form to edit the data:

    await Navigator.push(
    context,
    MaterialPageRoute(
    builder: (context) => EnsaioItemFormView(),
    ),
    )


    In the form, I make the maintenance of data and close it with

    Navigator.pop(_buildContext);


    I need to close the form, get the next index of ListView, and call the form again.

    How could I do this?

    Continue reading...

Compartilhe esta Página