0

Assume that I have to hide a few essential parameters which are sent through go_router's query params like - "

GoRouter.of(context).pushNamed(route, queryParameters: { 'id': 'hhhhhh', 'key': 'yyyyy' });

I don't want to let the user see the Id, is that possible in Flutter?

I tried the Uri.encodeQueryParameters() function which is present in dart:convert but it didn't work.

Cavin Macwan
  • 1,183
  • 5
  • 12

1 Answers1

0

Actually, You can't hide this but You can encrypt this and decrypt it from the other page so the query params should be something like data = "encrypted data" and then you decrypt it from the other page and for the user will see only the encrypted data

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 15 '23 at 23:38