3

I am using a script by exporting it with flutter for the web. There I need to put something over an URL slug into a field via a get request.

Example:

www.url.de/?id=123 

here I need to put "123" into the field.

How can I read this 123 out of the URL with Flutter Web?

1 Answer 1

4

Try Uri.base.queryParameters it returns a Map, so you can do Uri.base.queryParameters['id'] and it will return the value

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.