ligarPaciente function

dynamic ligarPaciente(
  1. String url,
  2. BuildContext context
)

Implementation

ligarPaciente(String url, BuildContext context) async {
  await canLaunch(url)
      ? await launch(url)
      : showDialog(
          context: context,
          builder: (BuildContext context) {
            return const AlertDialog(
              title: Text('Alerta !!'),
              content: Text('Não foi possivel encontar um APP compatível.'),
            );
          });
}