How can I get the current URL in a Flutter Web App on which the user of the web app currently is?
For example:
app1.website.com app2.website.com
According to the result of the current URL on which the user of the web app currently is, I want to show different content.
Show activity on this post. And also change the url from "localhost:49318/#/home/inicio" to "localhost:49318/#/home/other". All of this without using the Navigator. In a mobile app I would change the widget shown with a set state, but doing that on a web page wouldn't change the url.
You can find it like this:
import 'dart:html';
var url = window.location.href;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With