Commit b72846d6 authored by Budi Prasetyo's avatar Budi Prasetyo

WA

parent e9371a51
......@@ -10,7 +10,7 @@ class WAChat extends StatelessWidget {
required String message,
}) async {
String url() {
return "https://api.whatsapp.com/send?phone=$phone&text=${Uri.parse(message)}";
return "https://api.whatsapp.com/send?phone=+62$phone&text=${Uri.parse(message)}";
}
if (await canLaunch(url())) {
......@@ -28,9 +28,10 @@ class WAChat extends StatelessWidget {
return FloatingActionButton(
onPressed: () {
launchWhatsApp(
phone: 6281807890777,
//phone: 81807890777,
phone: 87701892981,
message:
'Hallo, saya tertarik dengan produk EKSAD dan saya ingin tahu lebih lanjut tentang program Protalent');
'Hallo, saya tertarik dan saya ingin tahu lebih lanjut tentang program Medapp by EKSAD');
},
backgroundColor: Colors.green,
child: GestureDetector(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment