Coder Social home page Coder Social logo

How to return multiple pages about getx HOT 4 CLOSED

jonataslaw avatar jonataslaw commented on May 8, 2024
How to return multiple pages

from getx.

Comments (4)

jonataslaw avatar jonataslaw commented on May 8, 2024

Get.offAll(close all previous pages)
Get.close(close number of pages, ex: 3)
Get.until(close all previous pages until the page required).

All methods for named navigation along with these are in the documentation.

from getx.

948911908 avatar 948911908 commented on May 8, 2024

Get.close is satisfied, but it doesn't seem to want to take arguments to the returned page like get.back @jonataslaw

from getx.

jonataslaw avatar jonataslaw commented on May 8, 2024

Get.close está satisfeito, mas parece não querer levar argumentos para a página retornada, como get.back @jonataslaw

That's not possible. The Flutter API does not allow data to be sent to another route.

You can do some alternative work with this, it is very ugly, but it is your only solution if you do not want to adopt named routes:

On the page where you want to receive the data:
var data = await Get.to(PageTwo());
print("$data");

on PageTwo:
var data = await Get.to(PageThree());
Get.back(result: data);

on PageThree:
String test = "Test callback";
Get.back(result: test);

from getx.

jonataslaw avatar jonataslaw commented on May 8, 2024

Closing this because it is not a description of BUG. If you encounter problems with Get, open an issue by filling out the bug-opening form.

from getx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.