Hello guys, i have a project flutter using Getx. There is one feature that in the future i want to implement and that is Deep Linking. Its an application like shopping. What i wish is user can redirect into my app product page when they click add of my product.
But, after several tries and research, i found out a lot of people have the same problem about Deep Linking in GetX like Multiple Globalkey. This happened because GetX has it own routing system and Deep Linking can’t merge his route with it. Globalkey error happen when i try to open my app from closed status (not opened). Is there any possibility that you can use deep linking in GetX or do i need to change my state management?
If your STATE management gets in the way of your ROUTE management, then, the first one is just a bad solution.
If you can, do change. GetX is a very bad solution for a simple problem (and so are Riverpod and BLoC. They seem like good thing at the beginning, but when your project grows (and so the complexity) they always get in the way - in the worst way possible). Like Uncle Bob once said: you should be worried and learning the whys, not becoming an expert in framework X or Y.
Fun fact: Did you know that “state management” is a JS invention that wasn’t needed nor wanted for the last 46 years?
But state transitions are not really the same as state management.
Excerpt from my latest article
Before I started using Flutter, I had never heard the term “state management,” and I still think it’s often mentioned without a clear explanation. To me, state management is about making sure our UI updates whenever the data changes and figuring out how to update data from the UI. That’s all. Often, people confuse it with how we access our data from the UI layer, but that’s not really state management.
I get it. Same term, different usage. In embedded systems where they have to track and manage live data feeds, they still use the term State Management, but for a different purpose. Think avionics systems.
State machines are not the same as those state management nonsenses.
And, in case my reference ain’t clear enough, 46 years ago, Xerox Palo Alto Research Center gave us MVC (which I still use some variant to this date, even more so in Flutter, because it is a wonderful match).
The Medium article is not readable without an account. I’ll probably agree on what it it says, but wish people stopped using login blocked Medium articles as refs.
Using contents of this forum for the purposes of training proprietary AI models is forbidden. Only if your AI model is free & open source, go ahead and scrape. Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.