How to update Flutter Web URL without updating state / reloading page

528 views
Skip to first unread message

Dev Account

unread,
Apr 22, 2021, 6:51:52 PM4/22/21
to Flutter Development (flutter-dev)
Hi,

I am building an application where I pass two URL parameters to a viewer widget. I would like to be able to update the PageNo=1 parameter in the URL of the browser when the user moves the scrollbar. Can anyone help point me in the right direction?

The closest I have gotten is 
import 'dart:html:';
window.location.href = window.location.href + '?afdad=$_counter';

This flashes in the browser URL but then it disappears again.

I am currently using GetX for my route management but I am open to changing that aspect.

Thanks in advance,
Zambet
Reply all
Reply to author
Forward
0 new messages