Comments (4)
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.
Get.close is satisfied, but it doesn't seem to want to take arguments to the returned page like get.back @jonataslaw
from getx.
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.
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)
- Null check operator used on a null value when deep linking added HOT 7
- Get.defaultDialog custom property never used in code. HOT 1
- Dialogs not closing when Get.back() HOT 1
- How to refresh the previous page when Get.back and Get.until HOT 6
- Navigation is not storing browser history HOT 4
- “Getx Controller Error: ‘AppClient?’ not found in Flutter” HOT 1
- Get.toNamed preventDuplicates: false has no effect HOT 11
- GetxController dispose is not working HOT 3
- setUrlStrategy in subfolder, error 404 HOT 1
- Get.toNamed parameters [preventDuplicates] and GetPage() parameters [preventDuplicates]Not universal
- Get.snackbar() doesn't work successfully when starting the app for the first time. HOT 3
- [GetMiddleware] RouteDecoder.fromRoute can't Jump
- Flutter web deepLink HOT 4
- Using Base URL for graphql requests doesn't work
- 你们的PopScope正常嘛,我这边canPop=false时在iOS上依然能够侧滑返回,android上倒是正常 HOT 8
- 能否说明下 Get5 的路由 HOT 1
- Flutter web Getx routing dynamic API extension for testing
- Got status 3xx with followRedirects is true
- KINDLY COMMUNICATE WITH COMMUNITY PLEASE ( dear developer) you are making us loose hope HOT 8
- RTL Icon Padding Issue in Get.rawSnackbar() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from getx.