'How to force to open a google play link in google chrome instead of the Play Store app?
In my flutter application, I need to force open a google play store link through google chrome and not through the play store app. How can I do it? It is possible? This code keeps opening the link with the Play Store app.
Thanks
TextButton(
onPressed: () async {
const url = 'https://play.google.com/store/apps/details?id=com.facebook.katana';
if(await canLaunch(url)){
await launch(url);
}else {
throw 'Could not launch $url';
}
},
child: const CustomWidget(
icon: Icons.language,
label: 'Open a URL',
),
),
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
