void _launchUrl(String Url)async{
if(await canLaunch(Url)){
await launch(Url);
}
else{
throw 'can not open Url';
}
}
FlatButton(
onPressed: () {
_launchUrl(user.webAddress);
},
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/9a345999-eab1-4757-aa37-1ef6c1cb8b80o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/066a26d0-87a0-4c33-abe1-daf555b7972bo%40googlegroups.com.
You are the king Suzuki. Thank you and thank you🙏🙏🙏
void _launchcaller(String number)async{
if(await canLaunch(number)){
await launch(number);
}else
{
throw 'can not place call';
}
}
FlatButton(
onPressed: () {
_launchcaller('tel:' + user.tel);
},
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/ae915c6e-06d8-48f3-a558-299ef1717c84o%40googlegroups.com.
String _tel = '';
so it gets saved as a string ? i am not sure if i have to convert it to integer before try to make the Call Launch?TextFormField(
initialValue: _tel,
style: TextStyle(fontSize: 18.0),
decoration: InputDecoration(
icon: Icon(
Icons.phone,
size: 30.0,
),
labelText: 'Telefonnummer',
),
validator: (input) => input.trim().length > 100
? 'Please enter a valid name'
: null,
onSaved: (input) => _tel = input,
),
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/659e2737-a671-4c8f-b8ad-f9f3f69f0e60o%40googlegroups.com.
I need to thank you Suzuki once again. Everything worked well, I was just stupid enough to not realize that I can’t make a call with the simulator 😅I ran the app in physical device and everything worked .Thanks againmån 8 juni 2020 kl. 17:42 skrev Error Place <reza7....@gmail.com>:The app crashes and Android studio loses connection with the device😥