Open karansingla007 opened 2 years ago
@victorbonnet I am using
flutter_web_browser: ^0.16.0
withflutter version 2.8.1
and I want to listen to theURL
and perform some actions.
Same question! It appears that it's only supporting close events that's it. Won't catch any redirect event at all. Please update?
Bump
Not sure why this isn't documented. But here is the sample code for it. Note: works only on iOS
FlutterWebBrowser.events().listen((event) {
if (event is RedirectEvent) {
onRedirect(event.url);
}
if (event is CloseEvent) {
onClose();
}
});
@victorbonnet I am using
flutter_web_browser: ^0.16.0
withflutter version 2.8.1
and I want to listen to theURL
and perform some actions.