ListTile(
leading: const Icon(
Icons.link,
color: Colors.black,
size: 30,
),
title: const Text(
'Body Mass Index Calculator',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w500,
),
),
onTap: () {},
),
I am trying to make a link that opens website on browser directly.
2
Answers
Using url_launcher you do easily.
Here Example:
As of
url_launcher: ^6.1.0
The plugin introduces support for webOnlyWindowName property and few Other new apis like launchUrl, For web support now you longer have to depend on dart:html You can simply declare the below functionand use it like this