hey guys i have a problem with my flutter web project
it is, if user accesses the project with in-app-browser(ex. instagram, twitter) it displays crashed UI
so i need to make an Dialog that shows, the link needs to open with other kinds of browser besides in-app-browser
so the first thing what I need to find out is what kind of browser user access from but I don't know how to debug it from
is there anyone who ever tried this kind of work??
CodePudding user response:
Did you try both renderers seperately?
This could be the solution maybe.
Try building the html-renderer version and the canvaskit seperately, maybe there is an issue with this in the in app-browsers.
CodePudding user response:
I think using kIsWeb should work.
Documentation: https://api.flutter.dev/flutter/foundation/kIsWeb-constant.html
tl:dr
if (kIsWeb) {
// running on the web!
} else {
// NOT running on the web! You can check for additional platforms here.
}
CodePudding user response:
you can try to use this package - web_browser_detect