Is it possible for Deep Linking using GetX?

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?

Thank youu

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?

2 Likes

See my last article on this too Flutter Architecture Simplified

• Please don’t use GetX. You will regret it. - Flutter: Why You Will Regret Using GetX (2023) | by Max Zimmermann 💡 | Medium
• Seriously, don’t use GetX. I’m begging you. - https://www.youtube.com/watch?v=zlIgy4es5Ts

Back in the 1980s, State Transition Diagrams were an early effort in State Management so I think the discipline is older than just JS. Just saying.

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.

1 Like

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.

1 Like

I was there in the 80’s [Insert Elrond meme here]

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).

2 Likes

thanks guys, i already change the routes of getx with native routes and it works fine.

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.

2 Likes

Try this instead: https://freedium.cfd/https://medium.com/@m-zimmermann1/why-you-will-regret-using-getx-for-flutter-2023-4bd7b710fa47