Comments (1)
Like:
Get.toNamed("/article/:articleID");
You can easily pass data between named routes using arguments. The implementation of named URL segments ": articleID" is nice, but for now not possible due to Dart limitations, version 2.6 will bring extensions, which is a kickoff for this to be possible. However, you can be sure that as soon as you can create this, I will.
While this is not possible, you can do the following:
Get.toNamed('/profile', arguments: {"user_id:"1"})
on Router class:
GetRoute(settings: settings, builder: (_) => Profile(data: settings.arguments));
on Profile class:
class Profile extends StatelessWidget{
final data;
(...)
from getx.
Related Issues (20)
- Displaying a Snackbar that is does not use the full width makes buttons on that height unclickable.
- [Flutter 3.16.5][GetX-5_RC5] PopScope issue HOT 12
- Error: Undefined name 'required'.
- Memory leaks HOT 1
- Can get.to specify context? HOT 1
- RxList in Getx bindStream, but Obx keep get old data emmited
- Nested GetRouterOutlet not working as expected HOT 2
- UI Not Updating with Switch/Toggle in ListView using GetX Controller
- Back button in browser don't behave the same as Get.back()
- Reactive variable observation issues HOT 2
- 是否可以在 GetMiddleware 中拿到正确的 arguments 值
- The GetxController is not automatically deleted if it is the first child of GetMaterialApp HOT 3
- GetxController value change listen is called without widget init
- get.dialog is automatic dismiss when app lifecycle is background.
- Margin of The GetSnackBar is Blocking Clickable Widget Under the Snackbar
- any suggestions to support deferred for GetMaterialApp?
- Get.arguments coming Null for Unit test
- Add zh_Hans and zh_Hant when using multiple languages
- Null check operator used on a null value HOT 2
- Routing_issue
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.