URl_Luncher Add
A Flutter plugin for launching a URL.
Add this Plugin to your project i pubspec.yml file's dependency.
Exapmles
InkWell(
onTap: () async {
await launchUrl(
Uri(scheme: 'tel', path: '1664-54-55151'),
);
},
child: Row(
children: [
Padding(
padding: const EdgeInsets.only(right: 10),
child: Image.asset(
AppImages.dialCallImage,
fit: BoxFit.fill,
),
),
Text(
'1664-54-55151',
style: Get.textTheme.headline6!.copyWith(
color: AppColors.appGreyTextcolor, fontSize: 14),
),
],
),
),
InkWell(
onTap: () async {
await launchUrl(
Uri(scheme: 'mailto', path: 'vrind1script.co.in'),
);
},
child: Row(
children: [
Padding(
padding: const EdgeInsets.only(right: 10),
child: Image.asset(
AppImages.mailImage,
fit: BoxFit.fill,
width: 35,
),
),
Text(
'vrind1script.co.in',
style: Get.textTheme.headline6!.copyWith(
color: AppColors.appGreyTextcolor, fontSize: 14),
),
],
),
),
it is valuable code
ReplyDelete