I need the ability just to update the URL in the address bar, without pushing a named route. Is there maybe a plugin for it? It not, can I invoke JavaScript functions from the Flutter code?
Currently the one way I found to update the URL is the code below, which forces to "push" a new route, which I do not want to do. I just want to update the address bar.
Note: I am using flutter web to create cross platform apps, so using dart:html is not an option as it fails the build on mobile.
// Within the `FirstScreen` widget
onPressed: () {
// Navigate to the second screen using a named route.
Navigator.pushNamed(context, '/second');
}