I have used launchUrl(uri);
of url_launcher package to open a webview.
I want to detect when the user taps to 'Done' or Webview of url_launcher disappears.
How can I make it?
I have used launchUrl(uri);
of url_launcher package to open a webview.
I want to detect when the user taps to 'Done' or Webview of url_launcher disappears.
How can I make it?
You can use WidgetsBindingObserver interface and listen for widget state changes. This will let you know if your app is in the background or foreground. So you can use the resumed case to run code after your return from the browser.